Beispiel #1
0
 def setUp(self):
     self.test_settings = test_settings
     self.nature_photos = PhotoSearch(tag='nature')
Beispiel #2
0
 def test_return_with_tags(self):
     self.assertFalse('tags' in self.nature_photos.first().__dict__)
     self.assertTrue('tags' in dir(self.nature_photos.first()))
     missile_photo = PhotoSearch(tag='missile', tags=True).first()
     self.assertTrue('tags' in missile_photo.__dict__)
     self.assertTrue('tags' in dir(missile_photo))