Package unit :: Module test_sessions :: Class TestChatControlSession
[hide private]
[frames] | no frames]

Class TestChatControlSession

source code


Testclass for session.py
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
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
receive_chat_msg(self, jid, msgtxt)
simulate receiving a chat message from jid
source code
 
assert_new_message_notification(self)
a new_message notification has been sent
source code
 
assert_first_message_notification(self)
this message was treated as a first message
source code
 
assert_not_first_message_notification(self)
this message was not treated as a first message
source code
 
test_receive_nocontrol(self)
test receiving a message in a blank state
source code
 
test_receive_already_has_control(self)
test receiving a message with a session already attached to a control
source code
 
test_received_orphaned_control(self)
test receiving a message when a control that doesn't have a session attached exists
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 
Hook method for setting up the test fixture before exercising it.
Overrides: unittest.TestCase.setUp
(inherited documentation)

tearDown(self)

source code 
Hook method for deconstructing the test fixture after testing it.
Overrides: unittest.TestCase.tearDown
(inherited documentation)

receive_chat_msg(self, jid, msgtxt)

source code 
simulate receiving a chat message from jid

assert_new_message_notification(self)

source code 
a new_message notification has been sent

assert_first_message_notification(self)

source code 
this message was treated as a first message

assert_not_first_message_notification(self)

source code 
this message was not treated as a first message

test_receive_nocontrol(self)

source code 
test receiving a message in a blank state

test_receive_already_has_control(self)

source code 
test receiving a message with a session already attached to a control

test_received_orphaned_control(self)

source code 
test receiving a message when a control that doesn't have a session attached exists