'Regression for #9011 - error message is correct.
Change from error to warning for ticket #18213.'

def test_error_message(self):

    with warnings.catch_warnings(record=True) as warning_list:
        warnings.simplefilter('always')
        management.call_command('loaddata', 'bad_fixture2', 'animal', verbosity=0)
        warning = warning_list.pop()
        self.assertEqual(warning.category, RuntimeWarning)
        self.assertEqual(str(warning.message), "No    fixture    data    found    for    'bad_fixture2'.    (File    format    may    be    invalid.)")
