def test_permission_register_order(self):
        # Changeset 14413 introduced a regression in the ordering of
        # newly created permissions for objects. When loading a fixture
        # after the initial creation (such as during unit tests), the
        # expected IDs for the permissions may not match up, leading to
        # SQL errors. This is ticket 14731

        # Start with a clean slate and build the permissions as we
        # expect to see them in the fixtures.
        auth_models.Permission.objects.all().delete()
        contenttypes_models.ContentType.objects.all().delete()
        create_permissions(auth_models, [], verbosity=0)
        create_permissions(contenttypes_models, [], verbosity=0)

        stderr = StringIO()
        call_command('loaddata', 'test_permissions.json',
                     verbosity=0, commit=False, stderr=stderr)
        self.assertEqual(stderr.getvalue(), '')
Fit the random classifier.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/contrib/auth/tests/permissions.py/TestAuthPermissions.test_permission_register_order--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/dummy.py/DummyClassifier.fit