Exemple #1
0
 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"]
Exemple #2
0
 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"]
Exemple #3
0
 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")