예제 #1
0
def test_align_right():
    assert align_text(["x"], 1, 1, "right", (11, 2)) == ["          x"]
    assert align_text(["x"], 1, 1, "right", (1, 2)) == ["x"]
예제 #2
0
def test_align_left():
    assert align_text(["x"], 1, 1, "left", (11, 2)) == ["x"]
예제 #3
0
def test_align_center():
    assert align_text(["x"], 1, 1, "center", (21, 2)) == ["          x"]
    assert align_text(["x"], 1, 1, "center", (1, 2)) == ["x"]