# evennia.contrib.base_systems.ingame_python.tests

Module containing the test cases for the in-game Python system.

class `evennia.contrib.base_systems.ingame_python.tests.``TestEventHandler`(methodName='runTest')

  Bases: `evennia.utils.test_resources.BaseEvenniaTest`

  Test cases of the event handler to add, edit or delete events.

  `setUp`()

    Create the event handler.

  `tearDown`()

    Stop the event handler.

  `test_start`()

    Simply make sure the handler runs with proper initial values.

  `test_add_validation`()

    Add a callback while needing validation.

  `test_edit`()

    Test editing a callback.

  `test_edit_validation`()

    Edit a callback when validation isn’t automatic.

  `test_del`()

    Try to delete a callback.

  `test_accept`()

    Accept an callback.

  `test_call`()

    Test to call amore complex callback.

  `test_handler`()

    Test the object handler.

class `evennia.contrib.base_systems.ingame_python.tests.``TestCmdCallback`(methodName='runTest')

  Bases: `evennia.utils.test_resources.BaseEvenniaCommandTest`

  Test the @callback command.

  `setUp`()

    Create the callback handler.

  `tearDown`()

    Stop the callback handler.

  `test_list`()

    Test listing callbacks with different rights.

  `test_add`()

    Test to add an callback.

  `test_del`()

    Add and remove an callback.

  `test_lock`()

    Test the lock of multiple editing.

  `test_accept`()

    Accept an callback.

class `evennia.contrib.base_systems.ingame_python.tests.``TestDefaultCallbacks`(methodName='runTest')

  Bases: `evennia.utils.test_resources.BaseEvenniaCommandTest`

  Test the default callbacks.

  `setUp`()

    Create the callback handler.

  `tearDown`()

    Stop the callback handler.

  `test_exit`()

    Test the callbacks of an exit.