~ubuntu-branches/ubuntu/quantal/python-gevent/quantal

« back to all changes in this revision

Viewing changes to greentest/test__socket_ssl.py

  • Committer: Bazaar Package Importer
  • Author(s): Örjan Persson
  • Date: 2011-05-17 16:43:20 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110517164320-nwhld2xo6sz58p4m
Tags: 0.13.6-1
New upstream version (Closes: #601863).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
if not hasattr(socket, 'ssl'):
9
9
    sys.exit(0)
10
10
 
 
11
 
11
12
class AmazonHTTPSTests(unittest.TestCase):
12
13
 
13
14
    def test_amazon_response(self):
14
15
        conn = httplib.HTTPSConnection('sdb.amazonaws.com')
15
16
        conn.debuglevel = 1
16
17
        conn.request('GET', '/')
17
 
        resp = conn.getresponse()
 
18
        conn.getresponse()
18
19
 
19
20
    def test_str_and_repr(self):
20
21
        conn = socket.socket()
26
27
 
27
28
if __name__ == "__main__":
28
29
    unittest.main()
29