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