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"}
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"})
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'})