def test_model_with_invalid_commit_cmd_schmea(self):
    self.model_instance_0.commit_cmds = [{'cmd': 'change_role', 'assignee_id': 'id', 'new_role': 'manager'}, {'cmd': 'publish_story', 'invalid_attribute': 'invalid'}]
    self.model_instance_0.put()
    expected_output = [u'[u\'failed validation check for commit cmd change_role check of StoryRightsSnapshotMetadataModel\', [u"Entity id 0-1: Commit command domain validation for command: {u\'assignee_id\': u\'id\', u\'cmd\': u\'change_role\', u\'new_role\': u\'manager\'} failed with error: The following required attributes are missing: old_role"]]', u'[u\'failed validation check for commit cmd publish_story check of StoryRightsSnapshotMetadataModel\', [u"Entity id 0-1: Commit command domain validation for command: {u\'cmd\': u\'publish_story\', u\'invalid_attribute\': u\'invalid\'} failed with error: The following extra attributes are present: invalid_attribute"]]', u"[u'fully-validated StoryRightsSnapshotMetadataModel', 2]"]
    run_job_and_check_output(self, expected_output, sort=True)
def test_model_with_invalid_commit_cmd_schmea(self):
    self.model_instance_0.commit_cmds = [{'cmd': 'change_role', 'assignee_id': 'id', 'new_role': 'manager'}, {'cmd': 'publish_story', 'invalid_attribute': 'invalid'}]
    self.model_instance_0.put()
    expected_output = [u'[u\'failed validation check for commit cmd change_role check of StoryRightsSnapshotMetadataModel\', [u"Entity id 0-1: Commit command domain validation for command: {u\'assignee_id\': u\'id\', u\'cmd\': u\'change_role\', u\'new_role\': u\'manager\'} failed with error: The following required attributes are missing: old_role"]]', u'[u\'failed validation check for commit cmd publish_story check of StoryRightsSnapshotMetadataModel\', [u"Entity id 0-1: Commit command domain validation for command: {u\'cmd\': u\'publish_story\', u\'invalid_attribute\': u\'invalid\'} failed with error: The following extra attributes are present: invalid_attribute"]]', u"[u'fully-validated StoryRightsSnapshotMetadataModel', 2]"]
    run_job_and_check_output(self, expected_output, sort=True)