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())
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())