Exemple #1
0
 def test_getheader(self):
     headers = {"host": "example.com"}
     r = HTTPResponse(headers=headers)
     assert r.getheader("host") == "example.com"
Exemple #2
0
 def test_getheader(self):
     headers = {'host': 'example.com'}
     r = HTTPResponse(headers=headers)
     self.assertEqual(r.getheader('host'), 'example.com')
Exemple #3
0
 def test_getheader(self):
     headers = {'host': 'example.com'}
     r = HTTPResponse(headers=headers)
     self.assertEqual(r.getheader('host'), 'example.com')
Exemple #4
0
 def test_getheader(self):
     headers = {'host': 'example.com'}
     r = HTTPResponse(headers=headers)
     assert r.getheader('host') == 'example.com'
Exemple #5
0
 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")