def testTaggedRanking(self):
    util._TEST_TIME = time.mktime((2013, 1, 2, 0, 0, 0, 0, 0, 0))
    self._TestFetchContacts(self._andy_facebook, self._andy_user.user_id,
                            {'data': [{'id': 200, 'name': 'Rachel Kimball', 'rank': 0},
                                      {'id': 300, 'name': 'Mike Purtell', 'rank': 1},
                                      {'id': 400, 'name': 'Matt Tracy', 'rank': 2}]},
                            {'data': [{'tags': {'data': [{'id': 200, 'created_time': '2012-12-31 00:00:00'},
                                                         {'id': 200, 'created_time': '2012-12-31 00:00:00'},
                                                         {'id': 300, 'created_time': '2010-12-31 00:00:00'},
                                                         {'id': 300},
                                                         {}]}},
                                      {'tags': None},
                                      {'tags': {'data': [{'id': 400, 'created_time': '2010-12-31 00:00:00'}]}}]})
Test ranking of people tagged in photos.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/fetch_contacts_test.py/FetchContactsTestCase.testTaggedRanking