Package pyxmpp2 :: Package test :: Module _util :: Class ReceiverSelectTestCase
[hide private]

Class ReceiverSelectTestCase


Base class for XMPP receiver streams tests, using the SelectMainLoop
Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Initialize class instance for a new test.
 
start_transport(self, handlers)
Create a listening socket for the tested stream, a transport a main loop and create a client connectiong to the socket.
 
make_loop(self, handlers)
Create the main loop object.
 
wait(self, timeout=60.0, expect=None)
Wait until the main loop finishes, timeout seconds passes or current server input matches expect.
 
wait_short(self, timeout=0.1)
Run a single main loop iteration.
 
tearDown(self)
Stop the server and client connections started.

Inherited from NetworkTestCase: make_listening_socket, start_client, start_server

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

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

Class Methods [hide private]

Inherited from NetworkTestCase: setUpClass

Inherited from unittest.case.TestCase: tearDownClass

Class Variables [hide private]

Inherited from NetworkTestCase: can_do_ipv4, can_do_ipv6

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Instance Variables [hide private]

Inherited from NetworkTestCase: client, server

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

 
Initialize class instance for a new test.
Overrides: unittest.case.TestCase.setUp
(inherited documentation)

tearDown(self)

 
Stop the server and client connections started.
Overrides: unittest.case.TestCase.tearDown
(inherited documentation)