evennia.contrib.base_systems.unixcommand.tests

Test of the Unixcommand.

class evennia.contrib.base_systems.unixcommand.tests.CmdDummy(**kwargs)[source]

Bases: evennia.contrib.base_systems.unixcommand.unixcommand.UnixCommand

A dummy UnixCommand.

key = 'dummy'
init_parser()[source]

Fill out options.

func()[source]

Override to handle the command execution.

aliases = []
help_category = 'general'
lock_storage = 'cmd:all();'
search_index_entry = {'aliases': '', 'category': 'general', 'key': 'dummy', 'no_prefix': ' ', 'tags': '', 'text': 'A dummy UnixCommand.'}
class evennia.contrib.base_systems.unixcommand.tests.TestUnixCommand(methodName='runTest')[source]

Bases: evennia.utils.test_resources.BaseEvenniaCommandTest

test_success()[source]

See the command parsing succeed.

test_failure()[source]

If not provided with the right info, should fail.