evennia.contrib.tutorials.bodyfunctions.tests

Tests for the bodyfunctions.

class evennia.contrib.tutorials.bodyfunctions.tests.TestBodyFunctions(methodName='runTest')[source]

Bases: evennia.utils.test_resources.BaseEvenniaTest

script_typeclass

alias of evennia.contrib.tutorials.bodyfunctions.bodyfunctions.BodyFunctions

setUp()[source]

Sets up testing environment

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_at_repeat(mock_random)[source]

test that no message will be sent when below the 66% threshold

test_send_random_message(mock_random)[source]

Test that correct message is sent for each random value