Example #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
Example #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
Example #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]
Example #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]