topshape.tests package

Submodules

topshape.tests.test_topshape module

Unit testing module for the topshape module.

class topshape.tests.test_topshape.TestBodyBox(methodName='runTest')[source]

Bases: unittest.case.TestCase

Unit tests for BodyBox class.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test__filter_matches()[source]

Test BodyBox._filter_matches().

test__sort_key()[source]

Test BodyBox._sort_key().

test_column_names()[source]

Test BodyBox.column_names.

test_columns()[source]

Test BodyBox.columns.

test_init()[source]

Test BodyBox.__init__().

test_move_sort()[source]

Test BodyBox.move_sort_right() and BodyBox.move_sort_left()

test_sorting_column()[source]

Test BodyBox.sorting_column.

test_update()[source]

Test BodyBox.update()

class topshape.tests.test_topshape.TestCacheThread(methodName='runTest')[source]

Bases: unittest.case.TestCase

Unit tests for CacheThread class.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_start()[source]

Test CacheThread.start().

Test CacheThread.start() with no footer.

class topshape.tests.test_topshape.TestHeader(methodName='runTest')[source]

Bases: unittest.case.TestCase

Unit tests for Header class.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_keypress_enter()[source]

Test Header.keypress() when key is enter

test_keypress_not_enter()[source]

Test Header.keypress() when key is not enter

class topshape.tests.test_topshape.TestTopShape(methodName='runTest')[source]

Bases: unittest.case.TestCase

Unit tests for TopShape class.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test__handle_key_custom_key()[source]

Test TopShape._handle_key(‘f’) without an input request

test__handle_key_with_input()[source]

Test TopShape.handle(‘f’) where pressing ‘f’ will cause an input request from the user.

test_create_app_minimal()[source]

Minimal TopShape.create_app()

Test TopShape.create_app() with footer function

test_enter_help()[source]

Test TopShape.enter_help()

test_enter_help_in_help_already()[source]

Test TopShape.enter_help(), already displaying help

test_exit()[source]

Test TopShape.exit()

test_exit_help()[source]

Test TopShape.exit_help()

test_exit_help_not_in_help_already()[source]

Test TopShape.exit_help(), not displaying help already

test_handle_help()[source]

Test TopShape.handle(‘h’).

test_handle_help_quit_in_help()[source]

Test TopShape.handle(‘q’) and TopShape.handle(‘esc’) while help output is displayed.

test_handle_help_quit_not_in_help()[source]

Test TopShape.handle(‘q’) and TopShape.handle(‘esc’) while help output is not displayed.

test_move_sort_left()[source]

Test TopShape.move_sort_left()

test_move_sort_left_on_help()[source]

Test TopShape.move_sort_right() while on help screen

test_move_sort_right()[source]

Test TopShape.move_sort_right()

test_move_sort_right_on_help()[source]

Test TopShape.move_sort_right() while on help screen

test_on_help()[source]

Test TopShape.on_help()

test_run()[source]

Test TopShape.run().

test_update()[source]

Test TopShape.update()

Module contents