mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 01:06:32 +01:00
159 lines
6.2 KiB
Python
159 lines
6.2 KiB
Python
import unittest
|
|
|
|
class TestIsIter(unittest.TestCase):
|
|
def test_is_iter(self):
|
|
# self.assertEqual(expected, is_iter(iterable))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestCrop(unittest.TestCase):
|
|
def test_crop(self):
|
|
# self.assertEqual(expected, crop(text, width, suffix))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestDedent(unittest.TestCase):
|
|
def test_dedent(self):
|
|
# self.assertEqual(expected, dedent(text))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestListToString(unittest.TestCase):
|
|
def test_list_to_string(self):
|
|
# self.assertEqual(expected, list_to_string(inlist, endsep, addquote))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestWildcardToRegexp(unittest.TestCase):
|
|
def test_wildcard_to_regexp(self):
|
|
# self.assertEqual(expected, wildcard_to_regexp(instring))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestTimeFormat(unittest.TestCase):
|
|
def test_time_format(self):
|
|
# self.assertEqual(expected, time_format(seconds, style))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestDatetimeFormat(unittest.TestCase):
|
|
def test_datetime_format(self):
|
|
# self.assertEqual(expected, datetime_format(dtobj))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestHostOsIs(unittest.TestCase):
|
|
def test_host_os_is(self):
|
|
# self.assertEqual(expected, host_os_is(osname))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestGetEvenniaVersion(unittest.TestCase):
|
|
def test_get_evennia_version(self):
|
|
# self.assertEqual(expected, get_evennia_version())
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestPypathToRealpath(unittest.TestCase):
|
|
def test_pypath_to_realpath(self):
|
|
# self.assertEqual(expected, pypath_to_realpath(python_path, file_ending))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestToUnicode(unittest.TestCase):
|
|
def test_to_unicode(self):
|
|
# self.assertEqual(expected, to_unicode(obj, encoding, force_string))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestToStr(unittest.TestCase):
|
|
def test_to_str(self):
|
|
# self.assertEqual(expected, to_str(obj, encoding, force_string))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestValidateEmailAddress(unittest.TestCase):
|
|
def test_validate_email_address(self):
|
|
# self.assertEqual(expected, validate_email_address(emailaddress))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestInheritsFrom(unittest.TestCase):
|
|
def test_inherits_from(self):
|
|
# self.assertEqual(expected, inherits_from(obj, parent))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestServerServices(unittest.TestCase):
|
|
def test_server_services(self):
|
|
# self.assertEqual(expected, server_services())
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestUsesDatabase(unittest.TestCase):
|
|
def test_uses_database(self):
|
|
# self.assertEqual(expected, uses_database(name))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestDelay(unittest.TestCase):
|
|
def test_delay(self):
|
|
# self.assertEqual(expected, delay(delay, callback, retval))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestCleanObjectCaches(unittest.TestCase):
|
|
def test_clean_object_caches(self):
|
|
# self.assertEqual(expected, clean_object_caches(obj))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestRunAsync(unittest.TestCase):
|
|
def test_run_async(self):
|
|
# self.assertEqual(expected, run_async(to_execute, *args, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestCheckEvenniaDependencies(unittest.TestCase):
|
|
def test_check_evennia_dependencies(self):
|
|
# self.assertEqual(expected, check_evennia_dependencies())
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestHasParent(unittest.TestCase):
|
|
def test_has_parent(self):
|
|
# self.assertEqual(expected, has_parent(basepath, obj))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestModImport(unittest.TestCase):
|
|
def test_mod_import(self):
|
|
# self.assertEqual(expected, mod_import(module))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestAllFromModule(unittest.TestCase):
|
|
def test_all_from_module(self):
|
|
# self.assertEqual(expected, all_from_module(module))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestVariableFromModule(unittest.TestCase):
|
|
def test_variable_from_module(self):
|
|
# self.assertEqual(expected, variable_from_module(module, variable, default))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestStringFromModule(unittest.TestCase):
|
|
def test_string_from_module(self):
|
|
# self.assertEqual(expected, string_from_module(module, variable, default))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestInitNewPlayer(unittest.TestCase):
|
|
def test_init_new_player(self):
|
|
# self.assertEqual(expected, init_new_player(player))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestStringSimilarity(unittest.TestCase):
|
|
def test_string_similarity(self):
|
|
# self.assertEqual(expected, string_similarity(string1, string2))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestStringSuggestions(unittest.TestCase):
|
|
def test_string_suggestions(self):
|
|
# self.assertEqual(expected, string_suggestions(string, vocabulary, cutoff, maxnum))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestStringPartialMatching(unittest.TestCase):
|
|
def test_string_partial_matching(self):
|
|
# self.assertEqual(expected, string_partial_matching(alternatives, inp, ret_index))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestFormatTable(unittest.TestCase):
|
|
def test_format_table(self):
|
|
# self.assertEqual(expected, format_table(table, extra_space))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestGetEvenniaPids(unittest.TestCase):
|
|
def test_get_evennia_pids(self):
|
|
# self.assertEqual(expected, get_evennia_pids())
|
|
assert True # TODO: implement your test here
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|