tetris.tests.test_tetrominos module

class tetris.tests.test_tetrominos.TestTetromino(methodName='runTest')

Bases: TestCase

Test case class for testing the Tetromino class.

CHECK_DOWN_POS = [[21, 3], [21, 4], [21, 5], [21, 6]]
LEFT_EDGE_POS = [[1, 0], [1, 1], [1, 2], [1, 3]]
RIGHT_EDGE_POS = [[1, 9], [1, 8], [1, 7], [1, 6]]
classmethod setUpClass() None

Set up the test class by initializing the settings, game, and tetromino objects.

Parameters:

cls – The class object.

Returns:

None

test_check_down() None

Test the check down method of the Tetromino class.

test_check_move_left() None

Test the check move left method of the Tetromino class.

test_check_move_right() None

Test the check move right method of the Tetromino class.

test_check_touch() None

Test the check touch method of the Tetromino class.