def test_validation_with_invalid_content_type_raise_exception(self):
    self.assertEqual(self.voiceover_application.content, '<p>Content</p>')
    self.voiceover_application.validate()
    self.voiceover_application.content = 1
    with self.assertRaisesRegexp(utils.ValidationError, 'Expected content to be a string'):
        self.voiceover_application.validate()
def test_validation_with_invalid_content_type_raise_exception(self):
    self.assertEqual(self.voiceover_application.content, '<p>Content</p>')
    self.voiceover_application.validate()
    self.voiceover_application.content = 1
    with self.assertRaisesRegexp(utils.ValidationError, 'Expected content to be a string'):
        self.voiceover_application.validate()