'Test for ticket #4371 -- If any of the fixtures contain an error,
loading is aborted.
Validate that error conditions are caught correctly'

def test_abort_loaddata_on_error(self):

    stderr = StringIO()
    management.call_command('loaddata', 'empty', verbosity=0, commit=False, stderr=stderr)
    self.assertEqual(stderr.getvalue(), "No    fixture    data    found    for    'empty'.    (File    format    may    be    invalid.)\n")
