예제 #1
0
def test_fit_text():
    out = py_cui.fit_text(7, 'Hello World')
    assert out == 'He...'
예제 #2
0
def test_fit_text_center():
    out = py_cui.fit_text(10, 'HI', center=True)
    assert out == '   HI    '