コード例 #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"]