def test_validation_with_invalid_language_code_raise_exception(self):
    self.assertEqual(self.voiceover_application.language_code, 'en')
    self.voiceover_application.validate()
    self.voiceover_application.language_code = 'invalid language'
    with self.assertRaisesRegexp(utils.ValidationError, 'Invalid language_code: invalid language'):
        self.voiceover_application.validate()
def test_validation_with_invalid_language_code_raise_exception(self):
    self.assertEqual(self.voiceover_application.language_code, 'en')
    self.voiceover_application.validate()
    self.voiceover_application.language_code = 'invalid language'
    with self.assertRaisesRegexp(utils.ValidationError, 'Invalid language_code: invalid language'):
        self.voiceover_application.validate()