def test_update_docs_with_updater_timestamp(self):
     (tiids_to_update, docs) = updater.get_least_recently_updated_tiids_in_db(2, self.d)
     response = updater.update_docs_with_updater_timestamp(docs, self.d)
     assert_equals(response[0][0], True)
     assert_equals(response[0][1], 'tiid3')
     assert_equals(self.d.get(tiids_to_update[0]).keys(), ['_rev', 'metrics', 'last_modified', 'biblio', '_id', 'type', 'last_update_run', 'aliases'])
 def test_get_least_recently_updated_tiids_in_db(self):
     number_to_update = 2
     (tiids_to_update, docs) = updater.get_least_recently_updated_tiids_in_db(number_to_update, self.d)
     print tiids_to_update
     assert_equals(sorted(tiids_to_update), sorted(['tiid2', 'tiid3']))