def test_model_with_last_updated_greater_than_current_time(self):
    self.model_instance_1.delete(feconf.SYSTEM_COMMITTER_ID, 'delete')
    self.model_instance_2.delete(feconf.SYSTEM_COMMITTER_ID, 'delete')
    expected_output = [(u"[u'failed validation check for current time check of StoryModel', [u'Entity id %s: The last_updated field has a value %s which is greater than the time when the job was run']]" % (self.model_instance_0.id, self.model_instance_0.last_updated))]
    with self.swap(datetime, 'datetime', MockDatetime13Hours), self.swap(db.DateTimeProperty, 'data_type', MockDatetime13Hours):
        update_datastore_types_for_mock_datetime()
        run_job_and_check_output(self, expected_output, sort=True)
def test_model_with_last_updated_greater_than_current_time(self):
    self.model_instance_1.delete(feconf.SYSTEM_COMMITTER_ID, 'delete')
    self.model_instance_2.delete(feconf.SYSTEM_COMMITTER_ID, 'delete')
    expected_output = [(u"[u'failed validation check for current time check of StoryModel', [u'Entity id %s: The last_updated field has a value %s which is greater than the time when the job was run']]" % (self.model_instance_0.id, self.model_instance_0.last_updated))]
    with self.swap(datetime, 'datetime', MockDatetime13Hours), self.swap(db.DateTimeProperty, 'data_type', MockDatetime13Hours):
        update_datastore_types_for_mock_datetime()
        run_job_and_check_output(self, expected_output, sort=True)