

def test_domain(self):
    response = requests.get('http://127.0.0.1:4040/domain', timeout=0.5)
    self.assertEqual(response.status_code, 200)
    response.assertEqual(response.text, 'http://test.example.com/')

dataset/ETHPy150Open ecdavis/pants/pants/test/web/test_web_application.py TestUrlFor.test_domain/VarMisuse@34/53 `self`->`response`