Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
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]
Exemplo n.º 4
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]