def test_modify_project(self):
        with client.test_mode as t:
            t.register_json('/projects/', {'count': 1, 'results': [{'id': 1,
                            'name': 'bar'}], 'next': None, 'previous': None},
                            method='GET')
            t.register_json('/projects/1/', {'name': 'bar', 'id': 1,
                            'type': 'project', 'organization': 1},
                            method='PATCH')
            self.res.modify(name='bar', scm_type="git")
            self.assertEqual(t.requests[0].method, 'GET')
            self.assertEqual(t.requests[1].method, 'PATCH')
            self.assertEqual(len(t.requests), 2)
Test modifying project in order to cover the special case that
dataset/ETHPy150Open ansible/tower-cli/tests/test_resources_project.py/UpdateTests.test_modify_project