def test_loaddata(self):
        # Load fixture 1. Single JSON file, with two objects
        management.call_command("loaddata", "fixture1.json", verbosity=0, commit=False)
        self.assertQuerysetEqual(
            Article.objects.all(), [
                "Time to reform copyright",
                "Poker has no place on ESPN",
                "Python program becomes self aware",
            ],
            lambda a: a.headline,
        )

        # Load fixture 2. JSON file imported by default. Overwrites some
        # existing objects
        management.call_command("loaddata", "fixture2.json", verbosity=0, commit=False)
        self.assertQuerysetEqual(
            Article.objects.all(), [
                "Django conquers world!",
                "Copyright is fine the way it is",
                "Poker has no place on ESPN",
                "Python program becomes self aware",
            ],
            lambda a: a.headline,
        )

        # Load a fixture that doesn't exist
        management.call_command("loaddata", "unknown.json", verbosity=0, commit=False)
        self.assertQuerysetEqual(
            Article.objects.all(), [
                "Django conquers world!",
                "Copyright is fine the way it is",
                "Poker has no place on ESPN",
                "Python program becomes self aware",
            ],
            lambda a: a.headline,
        )
Test that we can rename a file.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/modeltests/fixtures_model_package/tests.py/FixtureTestCase.test_loaddata--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_cftp.py/OurServerCmdLineClientTests.testRename