def test_method_reset(self): mock_column = MagicMock(spec=DisplayColumn) mock_column.align = 'left' mock_column.attribute = 'test' mock_column.colspan = 1 mock_column.default = None mock_column.formatter = None mock_column.lookup = None mock_data = MagicMock(test="test") instance = DisplayLine([mock_column], mock_data) DisplayLine.reset() expected_result = list() self.assertListEqual(instance._column_widths, expected_result)
def tearDown(self): DisplayLine.reset()