Exemplo n.º 1
0
 def test_check_cmdline_long(self, which, mock_cmd):
     s = StreamProcess(Streamlink(), params=dict(out_file="test file.txt"))
     mock_cmd.return_value = "test"
     which.return_value = "test"
     self.assertEqual("test --out-file \"test file.txt\"", s.cmdline())
Exemplo n.º 2
0
 def test_check_cmdline(self, which, mock_cmd):
     s = StreamProcess(Streamlink(), params=dict(help=True))
     mock_cmd.return_value = "test"
     which.return_value = "test"
     self.assertEqual("test --help", s.cmdline())