evennia.server.portal.tests

class evennia.server.portal.tests.TestAMPServer(methodName='runTest')[source]

Bases: TestCase

Test AMP communication

setUp()[source]

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

test_amp_out()[source]
test_amp_in()[source]
test_large_msg()[source]

Send message larger than AMP_MAXLEN - should be split into several

class evennia.server.portal.tests.TestIRC(methodName='runTest')[source]

Bases: TestCase

test_plain_ansi()[source]

Test that printable characters do not get mangled.

test_bold()[source]
test_italic()[source]
test_colors()[source]
test_identity()[source]

Test that the composition of the function and its inverse gives the correct string.

class evennia.server.portal.tests.TestTelnet(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_command_stacking_no_type_error()[source]
test_mudlet_ttype()[source]
test_mxp_parse()[source]

Test that mxp_parse correctly converts Evennia MXP markup to MXP escape sequences, and leaves messages without MXP markup untouched.

test_naws_resize_syncs_updated_width()[source]

Verify that a NAWS resize packet causes sessionhandler.sync to be called AFTER negotiate_sizes has updated SCREENWIDTH, not before. Regression test for the ordering bug introduced in #3498.

class evennia.server.portal.tests.TestWebSocket(methodName='runTest')[source]

Bases: BaseEvenniaTest

setUp()[source]

Sets up testing environment

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_data_in()[source]
test_data_out()[source]