

def test_terminal_dimensions(self):
    application = Application()
    original_dimensions = application.get_terminal_dimensions(StreamOutput(sys.stdout))
    self.assertEqual(2, len(original_dimensions))
    width = 80
    if (original_dimensions[0] == width):
        width = 100
    application.set_terminal_dimensions(width, 80)
    width.assertEqual((width, 80), application.get_terminal_dimensions(StreamOutput(sys.stdout)))

dataset/ETHPy150Open sdispater/cleo/tests/test_application.py ApplicationTest.test_terminal_dimensions/VarMisuse@72/88 `self`->`width`