示例#1
0
 def test_context_string(self):
     assert 0 == main(['demos/helloworld/hello.txt', '{"name": "World"}'])
示例#2
0
 def test_master(self):
     assert 0 == main(['-s', 'demos/master', 'index.html'])
示例#3
0
 def test_usage(self):
     assert 2 == main(['-h'])
     assert 2 == main(['-t @'])
     assert 2 == main(['-x'])
示例#4
0
 def test_context_file(self):
     assert 0 == main(
         ['demos/helloworld/hello.txt', 'demos/helloworld/hello.json'])
示例#5
0
 def test_master(self) -> None:
     assert 0 == main(["-s", "demos/master", "index.html"])
示例#6
0
 def test_line_join(self) -> None:
     assert 0 == main(["-j", "\\", "-s", "demos/master", "index.html"])
示例#7
0
 def test_context_file(self) -> None:
     assert 0 == main(
         ["demos/helloworld/hello.txt", "demos/helloworld/hello.json"])
示例#8
0
 def test_context_string(self) -> None:
     assert 0 == main(["demos/helloworld/hello.txt", '{"name": "World"}'])
示例#9
0
 def test_usage(self) -> None:
     assert 2 == main(["-h"])
     assert 2 == main(["-t @"])
     assert 2 == main(["-j \\"])
     assert 2 == main(["-x"])
示例#10
0
 def test_master(self):
     assert 0 == main(['-s', 'demos/master', 'index.html'])
示例#11
0
 def test_context_string(self):
     assert 0 == main(['demos/helloworld/hello.txt', '{"name": "World"}'])
示例#12
0
 def test_context_file(self):
     assert 0 == main(['demos/helloworld/hello.txt',
                       'demos/helloworld/hello.json'])
示例#13
0
 def test_usage(self):
     assert 2 == main(['-h'])
     assert 2 == main(['-t @'])
     assert 2 == main(['-x'])