'Fixtures can load data into models defined in packages'

def test_loaddata(self):

    management.call_command('loaddata', 'fixture1.json', verbosity=0)
    self.assertQuerysetEqual(Article.objects.all(), ['Time    to    reform    copyright', 'Poker    has    no    place    on    ESPN'], (lambda a: a.headline))
    management.call_command('loaddata', 'fixture2.json', verbosity=0)
    self.assertQuerysetEqual(Article.objects.all(), ['Django    conquers    world!', 'Copyright    is    fine    the    way    it    is', 'Poker    has    no    place    on    ESPN'], (lambda a: a.headline))
    with self.assertRaisesMessage(CommandError, "No    fixture    named    'unknown'    found."):
        management.call_command('loaddata', 'unknown.json', verbosity=0)
    self.assertQuerysetEqual(Article.objects.all(), ['Django    conquers    world!', 'Copyright    is    fine    the    way    it    is', 'Poker    has    no    place    on    ESPN'], (lambda a: a.headline))
