

def test_url(self):
    request = Request({
        'HTTP_X_FORWARDED_PROTO': 'http',
        'QUERY_STRING': 'key1=value1&key2=value2',
        'HTTP_X_FORWARDED_HOST': 'localhost',
        'PATH_INFO': '/hoge',
    })
    actual = actual.url
    self.assertEqual(actual, 'http://localhost/hoge?key1=value1&key2=value2')

dataset/ETHPy150Open c-bata/kobin/tests/test_environs.py RequestTests.test_url/VarMisuse@41/89 `request`->`actual`