'Test that the order of registered permissions doesn\'t break'

def test_permission_register_order(self):

    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(), '')
