def test_fetch_photo_comments_parser(self): group = GroupFactory(remote_id=GROUP_ID) album = AlbumFactory(remote_id=ALBUM_ID, group=group) photo = PhotoFactory(remote_id=PHOTO_ID, album=album) self.assertEqual(photo.comments, 0) photo.fetch_comments_parser() self.assertTrue(photo.comments > 0)