Ejemplo n.º 1
0
def test_noop():
    """
    Test to execute a puppet noop run
    """
    mock = MagicMock(return_value={"stderr": "A", "stdout": "B"})
    with patch.object(puppet, "run", mock):
        assert puppet.noop() == {"stderr": "A", "stdout": "B"}
Ejemplo n.º 2
0
 def test_noop(self):
     """
     Test to execute a puppet noop run
     """
     mock = MagicMock(return_value={"stderr": "A", "stdout": "B"})
     with patch.object(puppet, "run", mock):
         self.assertDictEqual(puppet.noop(), {"stderr": "A", "stdout": "B"})
Ejemplo n.º 3
0
 def test_noop(self):
     '''
     Test to execute a puppet noop run
     '''
     mock = MagicMock(return_value={"stderr": "A", "stdout": "B"})
     with patch.object(puppet, 'run', mock):
         self.assertDictEqual(puppet.noop(), {'stderr': 'A', 'stdout': 'B'})
Ejemplo n.º 4
0
 def test_noop(self):
     '''
         Test to execute a puppet noop run
     '''
     mock = MagicMock(return_value={"stderr": "A", "stdout": "B"})
     with patch.object(puppet, 'run', mock):
         self.assertDictEqual(puppet.noop(), {'stderr': 'A', 'stdout': 'B'})