def test_run(self): ''' Test for Run nagios plugin and return all the data execution with cmd.run ''' with patch.object(nagios, '_execute_cmd', return_value='A'): self.assertEqual(nagios.run('plugin'), 'A')
def test_run(self): """ Test for Run nagios plugin and return all the data execution with cmd.run """ with patch.object(nagios, "_execute_cmd", return_value="A"): self.assertEqual(nagios.run("plugin"), "A")