'Failing serializer import raises the proper error'

@override_settings(SERIALIZATION_MODULES={'unkn': 'unexistent.path'})
def test_unimportable_serializer(self):

    with self.assertRaisesMessage(ImportError, "No    module    named    'unexistent'"):
        management.call_command('loaddata', 'bad_fixture1.unkn', verbosity=0)
