chat.tests#

Module Contents#

Classes#

ConversationTest

Similar to TransactionTestCase, but use transaction.atomic() to achieve

class ConversationTest(methodName='runTest')#

Bases: django.test.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()#

Hook method for setting up the test fixture before exercising it.

Return type:

None

test_empty_conversation()#
Return type:

None

test_message_from_non_existing_sender()#
Return type:

None

test_message_from_system()#
Return type:

None

test_simple_conversation()#
Return type:

None

test_simple_conversation_2()#
Return type:

None