Package elisa :: Package plugins :: Package http_client :: Package tests :: Module test_http_client :: Class TestElisaHttpClientConnectionError

Class TestElisaHttpClientConnectionError

source code


This test case tests connection errors on the ElisaHttpClient class.

Instance Methods
 
test_connection_error(self)
Test that trying to connect on an invalid port raises the expected exception.
source code

Inherited from twisted.trial.unittest.TestCase: __call__, __eq__, __init__, __ne__, addCleanup, callDeprecated, deferRunCleanups, deferSetUp, deferSetUpClass, deferTearDown, deferTearDownClass, deferTestMethod, flushLoggedErrors, flushWarnings, getSkip, getSuppress, getTimeout, getTodo, mktemp, patch, run, runTest, shortDescription, visit

Inherited from twisted.trial.unittest._Assertions: assertAlmostEqual, assertAlmostEquals, assertApproximates, assertEqual, assertEquals, assertFailure, assertFalse, assertIdentical, assertIn, assertIsInstance, assertNot, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIdentical, assertNotIn, assertNotIsInstance, assertNotSubstring, assertRaises, assertSubstring, assertTrue, assertWarns, assert_, fail, failIf, failIfAlmostEqual, failIfAlmostEquals, failIfEqual, failIfEquals, failIfIdentical, failIfIn, failIfIsInstance, failIfSubstring, failUnless, failUnlessAlmostEqual, failUnlessAlmostEquals, failUnlessApproximates, failUnlessEqual, failUnlessEquals, failUnlessFailure, failUnlessFalse, failUnlessIdentical, failUnlessIn, failUnlessIsInstance, failUnlessRaises, failUnlessSubstring, failUnlessTrue, failUnlessWarns

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from ClientServerMixin
 
setUp(self) source code
 
ssl_enabled(self) source code
 
tearDown(self) source code
Class Variables
  client_constructor_args = SERVER_HOST, 2** 16
    Inherited from ClientServerMixin
  client_class = ElisaHttpClient
  client_constructor_kwargs = {}
  context_factory = None
hash(x)
Instance Variables

Inherited from twisted.trial.unittest.TestCase: failureException, skip, suppress, timeout, todo

Properties

Inherited from object: __class__