def test_pre_update_validate_change_skill_id(self):
    expected_suggestion_dict = self.suggestion_dict
    suggestion = suggestion_registry.SuggestionAddQuestion(expected_suggestion_dict['suggestion_id'], expected_suggestion_dict['target_id'], expected_suggestion_dict['target_version_at_submission'], expected_suggestion_dict['status'], self.author_id, self.reviewer_id, expected_suggestion_dict['change'], expected_suggestion_dict['score_category'], expected_suggestion_dict['language_code'], False, self.fake_date)
    change = {'cmd': question_domain.CMD_CREATE_NEW_FULLY_SPECIFIED_QUESTION, 'question_dict': {'question_state_data': self._create_valid_question_data('default_state').to_dict(), 'language_code': 'en', 'question_state_data_schema_version': feconf.CURRENT_STATE_SCHEMA_VERSION}, 'skill_id': 'skill_2'}
    with self.assertRaisesRegexp(utils.ValidationError, 'The new change skill_id must be equal to skill_1'):
        suggestion.pre_update_validate(question_domain.QuestionChange(change))
def test_pre_update_validate_change_skill_id(self):
    expected_suggestion_dict = self.suggestion_dict
    suggestion = suggestion_registry.SuggestionAddQuestion(expected_suggestion_dict['suggestion_id'], expected_suggestion_dict['target_id'], expected_suggestion_dict['target_version_at_submission'], expected_suggestion_dict['status'], self.author_id, self.reviewer_id, expected_suggestion_dict['change'], expected_suggestion_dict['score_category'], expected_suggestion_dict['language_code'], False, self.fake_date)
    change = {'cmd': question_domain.CMD_CREATE_NEW_FULLY_SPECIFIED_QUESTION, 'question_dict': {'question_state_data': self._create_valid_question_data('default_state').to_dict(), 'language_code': 'en', 'question_state_data_schema_version': feconf.CURRENT_STATE_SCHEMA_VERSION}, 'skill_id': 'skill_2'}
    with self.assertRaisesRegexp(utils.ValidationError, 'The new change skill_id must be equal to skill_1'):
        suggestion.pre_update_validate(question_domain.QuestionChange(change))