def test_validation_with_invalid_filename_type_raise_exception(self):
    self.assertEqual(self.voiceover_application.filename, 'audio_file.mp3')
    self.voiceover_application.validate()
    self.voiceover_application.filename = 1
    with self.assertRaisesRegexp(utils.ValidationError, 'Expected filename to be a string'):
        self.voiceover_application.validate()
def test_validation_with_invalid_filename_type_raise_exception(self):
    self.assertEqual(self.voiceover_application.filename, 'audio_file.mp3')
    self.voiceover_application.validate()
    self.voiceover_application.filename = 1
    with self.assertRaisesRegexp(utils.ValidationError, 'Expected filename to be a string'):
        self.voiceover_application.validate()