Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
add sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
akhomchenko committed Aug 2, 2015
1 parent 249921b commit 39138fd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/test_moves.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# coding: utf-8


import moves # TODO: write tests, this one checks compatibility
import pytest

import moves


class TestMovesClient(object):
def test_raises_if_no_acess_token_is_provided(self):
client = moves.MovesClient()
with pytest.raises(moves.MovesAPIError) as err:
client.api('/user')

assert 'provide a valid access token' in str(err.value)

0 comments on commit 39138fd

Please sign in to comment.