def test_formatstr(self): src = "one {one} {{notaone}} two {two}" fmt = aid.formatstr(src) assert src.format(one="ONE", two="TWO") == fmt(one="ONE", two="TWO") assert fmt.attributes == ["two", "one"]
def test_formatstr(self): src = "one {one} {{notaone}} two {two}" fmt = aid.formatstr(src) assert src.format(one="ONE", two="TWO") == fmt(one="ONE", two="TWO")