def test_run_process(self): """Test _run_process method""" serv = Server(path='abc') serv._start_process = Mock(return_value=MockProcess()) serv.gst_option_string = '' ret = serv._run_process() assert ret is not None
def test_option_string(self): """Test option_string property""" serv = Server(path='abc') serv._start_process = Mock() serv.gst_option_string = '-ZZZ' serv._run_process() serv._start_process.assert_called_once() assert '-ZZZ' in serv._start_process.call_args[0][0]
def test_option_string(self): """Test option_string property""" serv = Server(path="abc") serv._start_process = Mock() serv.gst_option_string = "-ZZZ" serv._run_process() serv._start_process.assert_called_once() assert "-ZZZ" in serv._start_process.call_args[0][0]