'Test that failing serializer import raises the proper error'

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

    with six.assertRaisesRegex(self, ImportError, u'No    module    named.*unexistent'):
        management.call_command(u'loaddata', u'bad_fixture1.unkn', verbosity=0)
