evennia.contrib.tutorials.bodyfunctions.tests

Tests for the bodyfunctions.

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

基类:evennia.utils.test_resources.BaseEvenniaTest

script_typeclass

evennia.contrib.tutorials.bodyfunctions.bodyfunctions.BodyFunctions 的别名

setUp()[源代码]

Sets up testing environment

tearDown()[源代码]

Hook method for deconstructing the test fixture after testing it.

test_at_repeat(mock_random)[源代码]

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

test_send_random_message(mock_random)[源代码]

Test that correct message is sent for each random value