Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
Add a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Oct 12, 2015
1 parent 2bfeefb commit d21c5e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ def test_get_records_handles_sort_by_newest(self):
'get', '/storage/mycollection',
params={'sort': 'newest', 'full': True})

def test_get_records_handles_sort_by_oldest(self):
self.client.get_records('mycollection', sort='oldest')
self.client._request.assert_called_with(
'get', '/storage/mycollection',
params={'sort': 'oldest', 'full': True})

def test_get_records_handles_sort_by_index(self):
self.client.get_records('mycollection', sort='index')
self.client._request.assert_called_with(
Expand Down

0 comments on commit d21c5e8

Please sign in to comment.