def test_getheader(self): headers = {"host": "example.com"} r = HTTPResponse(headers=headers) assert r.getheader("host") == "example.com"
def test_getheader(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheader('host'), 'example.com')
def test_getheader(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) assert r.getheader('host') == 'example.com'
def test_getheader(self): headers = {"host": "example.com"} r = HTTPResponse(headers=headers) self.assertEqual(r.getheader("host"), "example.com")