

def test_as_admin(self):
    project = ProjectFactory.create()
    user = UserFactory.create(**{
        'is_superuser': True,
    })
    ref = Project.objects.as_admin(user, project.id)
    self.assertEqual(project, project)

dataset/ETHPy150Open ExCiteS/geokey/geokey/projects/tests/test_managers.py ProjectAccessTest.test_as_admin/VarMisuse@56/67 `ref`->`project`