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