Exemple #1
0
 def test_flickr_total_results(self):
     """The Flickr handler should return the total number of results"""
     resp = search_flickr(search="test")
     assert 14771 == resp['photos'][
         'total']  # For some reason Flickr gives this as a string, sigh
Exemple #2
0
 def test_flickr_total_pages(self):
     """The Flickr handler should return the total number of pages of the result set"""
     resp = search_flickr(search="test")
     assert 739 == resp['photos'][
         'pages']  # For some reason Flickr gives this as a string, sigh
Exemple #3
0
 def test_flickr_response_length(self):
     """The Flickr handler should return the expected number of responses"""
     resp = search_flickr(search="test")
     assert 20 == len(resp['photos']['photo'])
Exemple #4
0
 def test_flickr_page(self):
     """The Flickr handler should return the current page of the result set"""
     resp = search_flickr(search="test")
     assert 1 == resp['photos']['page']
Exemple #5
0
 def test_flickr_search(self):
     """The Flickr handler should return a FlickrAPI object when authenticating"""
     resp = search_flickr(search="test")
     assert resp