def test_update_project_status_with_admin(self):
        request = self.factory.put(
            self.project.id % '/api/projects/%s/',
            {'status': 'inactive'}
        )
        force_authenticate(request, user=self.admin)
        view = ProjectUpdate.as_view()
        response = view(request, project_id=self.project.id).render()

        self.assertEqual(response.status_code, 200)
        self.assertEqual(
            Project.objects.get(pk=self.project.id).status,
            'inactive'
        )
dataset/ETHPy150Open ExCiteS/geokey/geokey/projects/tests/test_views.py/ProjectUpdateTest.test_update_project_status_with_admin/swapped operands of `%`