def test_missing_owner_user_model_failure(self):
    rights_manager.assign_role_for_exploration(self.owner, '0', self.user_id, rights_manager.ROLE_OWNER)
    user_models.UserSettingsModel.get_by_id(self.user_id).delete()
    expected_output = [(u'[u\'failed validation check for owner_user_ids field check of ExpSummaryModel\', [u"Entity id 0: based on field owner_user_ids having value %s, expect model UserSettingsModel with id %s but it doesn\'t exist"]]' % (self.user_id, self.user_id)), u"[u'fully-validated ExpSummaryModel', 2]"]
    run_job_and_check_output(self, expected_output, sort=True)
def test_missing_owner_user_model_failure(self):
    rights_manager.assign_role_for_exploration(self.owner, '0', self.user_id, rights_manager.ROLE_OWNER)
    user_models.UserSettingsModel.get_by_id(self.user_id).delete()
    expected_output = [(u'[u\'failed validation check for owner_user_ids field check of ExpSummaryModel\', [u"Entity id 0: based on field owner_user_ids having value %s, expect model UserSettingsModel with id %s but it doesn\'t exist"]]' % (self.user_id, self.user_id)), u"[u'fully-validated ExpSummaryModel', 2]"]
    run_job_and_check_output(self, expected_output, sort=True)