Esempio n. 1
0
def wrap_line(line):
    return wrap.wrap_line(line)
Esempio n. 2
0
def wrap_line(line):
    return wrap.wrap_line(line)
Esempio n. 3
0
def test_word_gt_colmax():
    text = "c" * 8
    assert wrap_line(text) == "c" * 7 + "\nc"
Esempio n. 4
0
def test_wrap_line():
    text = "bob"
    assert wrap_line(text) == "bob2"
Esempio n. 5
0
def test_1_split_longer():
    text = "thisisbiggerbutthis iscool"
    print wrap_line(text)
    assert wrap_line(text) == "thisisb\niggerbu\ntthis\niscool"
Esempio n. 6
0
def test_1_split():
    text = "this iscool"
    assert wrap_line(text) == "this\niscool"