示例#1
0
文件: test.py 项目: tijmengit/pycopia
 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"]
示例#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"]
示例#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")