@@ -56,29 +56,22 @@ def test_abusing_nghttp2_org(self):
56
56
assert all (map (lambda p : p .scheme == 'https' , pushes ))
57
57
assert all (map (lambda p : p .method .lower () == 'get' , pushes ))
58
58
59
- def test_hitting_twitter (self ):
59
+ def test_hitting_http2bin_org (self ):
60
60
"""
61
- This test function uses the requests adapter and requests to talk to
62
- Twitter. We can't use Twython and the API here because I don't want to
63
- expose my app keys, and remembering to use environment variables is a
64
- pain in the neck.
61
+ This test function uses the requests adapter and requests to talk to http2bin.
65
62
"""
66
63
s = requests .Session ()
67
64
a = HTTP20Adapter ()
68
- s .mount ('https ://twitter ' , a )
69
- s .mount ('https ://www.twitter ' , a )
65
+ s .mount ('http ://http2bin ' , a )
66
+ s .mount ('http ://www.http2bin ' , a )
70
67
71
68
# Here are some nice URLs.
72
69
urls = [
73
- 'https://twitter.com/' ,
74
- 'https://twitter.com/Lukasaoz' ,
75
- 'https://twitter.com/hynek' ,
76
- 'https://twitter.com/bitprophet' ,
77
- 'https://twitter.com/jessicamckellar' ,
78
- 'https://twitter.com/shazow' ,
79
- 'https://twitter.com/sigmavirus24' ,
80
- 'https://twitter.com/jillysciarilly' ,
81
- 'https://twitter.com/kennethreitz' ,
70
+ 'http://www.http2bin.org/' ,
71
+ 'http://www.http2bin.org/ip' ,
72
+ 'http://www.http2bin.org/user-agent' ,
73
+ 'http://www.http2bin.org/headers' ,
74
+ 'http://www.http2bin.org/get' ,
82
75
]
83
76
84
77
# Go get everything.
0 commit comments