Ejemplo 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"]
Ejemplo 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"]
Ejemplo 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")