Esempio n. 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"]
Esempio n. 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"]
Esempio n. 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")