mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 14:56:30 +01:00
134 lines
5.3 KiB
Python
134 lines
5.3 KiB
Python
import unittest
|
|
|
|
class TestPrettyTable(unittest.TestCase):
|
|
def test___getattr__(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.__getattr__(name))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test___getitem__(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.__getitem__(index))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test___init__(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
assert True # TODO: implement your test here
|
|
|
|
def test___str__(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.__str__())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test___str___case_2(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.__str__())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test___unicode__(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.__unicode__())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_add_column(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.add_column(fieldname, column, align, valign))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_add_row(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.add_row(row))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_clear(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.clear())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_clear_rows(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.clear_rows())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_copy(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.copy())
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_del_row(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.del_row(row_index))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_get_html_string(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.get_html_string(**kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_get_string(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.get_string(**kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_set_style(self):
|
|
# pretty_table = PrettyTable(field_names, **kwargs)
|
|
# self.assertEqual(expected, pretty_table.set_style(style))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestFromCsv(unittest.TestCase):
|
|
def test_from_csv(self):
|
|
# self.assertEqual(expected, from_csv(fp, field_names, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestFromDbCursor(unittest.TestCase):
|
|
def test_from_db_cursor(self):
|
|
# self.assertEqual(expected, from_db_cursor(cursor, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestTableHandler(unittest.TestCase):
|
|
def test___init__(self):
|
|
# table_handler = TableHandler(**kwargs)
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_generate_table(self):
|
|
# table_handler = TableHandler(**kwargs)
|
|
# self.assertEqual(expected, table_handler.generate_table(rows))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_handle_data(self):
|
|
# table_handler = TableHandler(**kwargs)
|
|
# self.assertEqual(expected, table_handler.handle_data(data))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_handle_endtag(self):
|
|
# table_handler = TableHandler(**kwargs)
|
|
# self.assertEqual(expected, table_handler.handle_endtag(tag))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_handle_starttag(self):
|
|
# table_handler = TableHandler(**kwargs)
|
|
# self.assertEqual(expected, table_handler.handle_starttag(tag, attrs))
|
|
assert True # TODO: implement your test here
|
|
|
|
def test_make_fields_unique(self):
|
|
# table_handler = TableHandler(**kwargs)
|
|
# self.assertEqual(expected, table_handler.make_fields_unique(fields))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestFromHtml(unittest.TestCase):
|
|
def test_from_html(self):
|
|
# self.assertEqual(expected, from_html(html_code, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestFromHtmlOne(unittest.TestCase):
|
|
def test_from_html_one(self):
|
|
# self.assertEqual(expected, from_html_one(html_code, **kwargs))
|
|
assert True # TODO: implement your test here
|
|
|
|
class TestMain(unittest.TestCase):
|
|
def test_main(self):
|
|
# self.assertEqual(expected, main())
|
|
assert True # TODO: implement your test here
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|