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