web.tests.testsecureconnection.TestSecureConnection

Package web :: Package tests :: Module testsecureconnection :: Class TestSecureConnection |
[hide private]
[frames] | no frames]

# Class TestSecureConnection

source code

    unittest.TestCase --+
                        |
                       TestSecureConnection

Nested Classes | [hide private]
Inherited from `unittest.TestCase`: `failureException`

Instance Methods | [hide private]
setUp(self) Hook method for setting up the test fixture before exercising it. | source code
launchServer(self, port) Launches a test server which always prints the args in the url requested | source code
testSecureConnection(self) Request a random url from the test serverand checks the response, using the secure connection with a valid certificate signed by the CA. | source code
testInsecureClient(self) Similar to testSecureConnection, but this time the client has an invalid (self-signed) certificate and thus the server should reject the connection. | source code
testInsecureServer(self) Similar to testInsecureConnection, but now it's the server the one using an invalid (self-signed) certificate, and thus the client should reject the connection. | source code
Inherited from `unittest.TestCase`: `__call__`, `__eq__`, `__hash__`, `__init__`, `__ne__`, `__repr__`, `__str__`, `assertAlmostEqual`, `assertAlmostEquals`, `assertEqual`, `assertEquals`, `assertFalse`, `assertNotAlmostEqual`, `assertNotAlmostEquals`, `assertNotEqual`, `assertNotEquals`, `assertRaises`, `assertTrue`, `assert_`, `countTestCases`, `debug`, `defaultTestResult`, `fail`, `failIf`, `failIfAlmostEqual`, `failIfEqual`, `failUnless`, `failUnlessAlmostEqual`, `failUnlessEqual`, `failUnlessRaises`, `id`, `run`, `shortDescription`, `tearDown` Inherited from `unittest.TestCase` (private): `_exc_info`

Method Details | [hide private]

### setUp(self) | source code
Hook method for setting up the test fixture before exercising it. Overrides: unittest.TestCase.setUp (inherited documentation)