コード例 #1
0
ファイル: yj2946-TestXML.py プロジェクト: SnehaR/xml-tests
 def test_print_2 (self) :
     w = io.StringIO("")
     XML.xml_print(w, 0, [])
     self.assertTrue(w.getvalue() == "0\n")
コード例 #2
0
ファイル: yj2946-TestXML.py プロジェクト: SnehaR/xml-tests
 def test_print_3 (self) :
     w = io.StringIO("")
     XML.xml_print(w, 1, [5])
     self.assertTrue(w.getvalue() == "1\n5\n")
コード例 #3
0
ファイル: yj2946-TestXML.py プロジェクト: SnehaR/xml-tests
 def test_print_1 (self) :
     w = io.StringIO("")
     XML.xml_print(w, 2, [2, 7])
     self.assertTrue(w.getvalue() == "2\n2\n7\n")