예제 #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
파일: test.py 프로젝트: bharathi26/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"]
예제 #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")