'Fixtures can load data into models defined in packages'

def test_loaddata(self):

    management.call_command(u'loaddata', u'fixture1.json', verbosity=0)
    self.assertQuerysetEqual(Article.objects.all(), [u'Time    to    reform    copyright', u'Poker    has    no    place    on    ESPN'], (lambda a: a.headline))
    management.call_command(u'loaddata', u'fixture2.json', verbosity=0)
    self.assertQuerysetEqual(Article.objects.all(), [u'Django    conquers    world!', u'Copyright    is    fine    the    way    it    is', u'Poker    has    no    place    on    ESPN'], (lambda a: a.headline))
    with warnings.catch_warnings(record=True) as w:
        warnings.simplefilter(u'always')
        management.call_command(u'loaddata', u'unknown.json', verbosity=0)
    self.assertEqual(len(w), 1)
    self.assertTrue(w[0].message, u"No    fixture    named    'unknown'    found.")
    self.assertQuerysetEqual(Article.objects.all(), [u'Django    conquers    world!', u'Copyright    is    fine    the    way    it    is', u'Poker    has    no    place    on    ESPN'], (lambda a: a.headline))
