def test_status(self): """ Test to return the status for a service, returns the PID or an empty string if the service is running or not, pass a signature to use to find the service via ps """ with patch.dict(service.__salt__, {"status.pid": MagicMock(return_value=True)}): self.assertTrue(service.status("name"))
def test_status(self): ''' Test to return the status for a service, returns the PID or an empty string if the service is running or not, pass a signature to use to find the service via ps ''' with patch.dict(service.__salt__, {'status.pid': MagicMock(return_value=True)}): self.assertTrue(service.status('name'))