def test_delete_probe(self, mock_upd): cmd.delete_probe(self.ctx, self.probe) self.assertTrue(self.ctx.device.delete_probe.called) self.assertTrue(self.ctx.device.delete_probe.call_count == 1) self.assertTrue(mock_upd.called, "upd not called") mock_upd.assert_called_once_with(self.ctx.conf, self.probe['id'], self.probe)
def test_delete_probe(self, mock_upd): cmd.delete_probe(self.ctx, self.probe) self.assertTrue(mock_upd.called, "upd not called")