def test_validation_with_invalid_target_type_raise_exception(self):
    self.voiceover_application.validate()
    self.voiceover_application.target_type = 'invalid_target'
    with self.assertRaisesRegexp(utils.ValidationError, 'Expected target_type to be among allowed choices, received invalid_target'):
        self.voiceover_application.validate()
def test_validation_with_invalid_target_type_raise_exception(self):
    self.voiceover_application.validate()
    self.voiceover_application.target_type = 'invalid_target'
    with self.assertRaisesRegexp(utils.ValidationError, 'Expected target_type to be among allowed choices, received invalid_target'):
        self.voiceover_application.validate()