def test_long_mid_odd_odd(self): cell = sl2.DisplayCell(5, 'C', '1234567') assert cell.display() == '12345'
def test_mid_odd_even(self): cell = sl2.DisplayCell(5, 'C', '1234') print('[' + cell.display() + ']') assert cell.display() == ' 1234'
def test_mid_even_even(self): cell = sl2.DisplayCell(6, 'C', '1234') assert cell.display() == ' 1234 '
def test_left_odd_even(self): cell = sl2.DisplayCell(5, 'L', '1234') assert cell.display() == '1234 '