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

Class TestNonBlockingTCP

source code


Test class for NonBlockingTCP. Will actually try to connect to an existing XMPP server.
Nested Classes [hide private]
  MockClient
Simple client to test transport functionality

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
_setup_hook(self) source code
 
_teardown_hook(self) source code
 
test_connect_disconnect_plain(self)
Establish plain connection
source code
 
test_do_receive(self)
Test _do_receive method by overwriting socket.recv
source code
 
test_do_send(self)
Test _do_send method by overwriting socket.send
source code

Inherited from AbstractTransportTest: expect_receive, have_received_expected, setUp, tearDown

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_hook(self)

source code 
Overrides: AbstractTransportTest._setup_hook

_teardown_hook(self)

source code 
Overrides: AbstractTransportTest._teardown_hook

test_connect_disconnect_plain(self)

source code 
Establish plain connection

test_do_receive(self)

source code 
Test _do_receive method by overwriting socket.recv

test_do_send(self)

source code 
Test _do_send method by overwriting socket.send