Package integration :: Module test_xmpp_transports_nb :: Class AbstractTransportTest
[hide private]
[frames] | no frames]

Class AbstractTransportTest

source code


Encapsulates Idlequeue instantiation for transports and more...
Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
IdleQueue thread is run and dummy connection is created.
source code
 
tearDown(self)
IdleQueue thread is stopped.
source code
 
_setup_hook(self) source code
 
_teardown_hook(self) source code
 
expect_receive(self, expected, count=1, msg=None)
Returns a callback function that will assert whether the data passed to it equals the one specified when calling this function.
source code
 
have_received_expected(self)
Plays together with expect_receive().
source code

Inherited from unittest.TestCase: __call__, __init__, __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

Inherited from unittest.TestCase (private): _exc_info

Method Details [hide private]

setUp(self)

source code 
IdleQueue thread is run and dummy connection is created.
Overrides: unittest.TestCase.setUp

tearDown(self)

source code 
IdleQueue thread is stopped.
Overrides: unittest.TestCase.tearDown

_setup_hook(self)

source code 

_teardown_hook(self)

source code 

expect_receive(self, expected, count=1, msg=None)

source code 

Returns a callback function that will assert whether the data passed to it equals the one specified when calling this function.

Can be used to make sure transport dispatch correct data.

have_received_expected(self)

source code 
Plays together with expect_receive(). Will return true if expected_rcv callback was called as often as specified