def test_align_items_complex_right_align(): to_align = [ ("alpha", "beta", "gamma"), ("a", "b", "c"), ("01", "02", "03"), ] aligned = DecFileParser._align_items(to_align, align_mode="right") assert aligned == [ "alpha beta gamma", " a b c", " 01 02 03" ]
def test_align_items_simple_right_align(): to_align = ["a", "quick", "brown", "fox"] aligned = DecFileParser._align_items(to_align, align_mode="right") assert aligned == [" a", "quick", "brown", " fox"]
def test_align_items_simple(): to_align = ["a", "quick", "brown", "fox"] aligned = DecFileParser._align_items(to_align) assert aligned == ["a ", "quick", "brown", "fox "]