From: beierlm Date: Mon, 31 Jan 2022 20:26:29 +0000 (-0500) Subject: Fixing unit test X-Git-Tag: v10.1.0-rc1~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=9282b864284a1503a10caef5e4dbc592c51150c9;p=osm%2FN2VC.git Fixing unit test Bringing change from master/v11.0 in unit test to assert that the disconnect was called, not just called once and only once Change-Id: I70fbe043cb05a8898f30d4b66285b7080ad76031 Signed-off-by: beierlm --- diff --git a/n2vc/tests/unit/test_libjuju.py b/n2vc/tests/unit/test_libjuju.py index 02f2b21..918a2fb 100644 --- a/n2vc/tests/unit/test_libjuju.py +++ b/n2vc/tests/unit/test_libjuju.py @@ -108,7 +108,7 @@ class GetControllerTest(LibjujuTestCase): with self.assertRaises(JujuControllerFailedConnecting): controller = self.loop.run_until_complete(self.libjuju.get_controller()) self.assertIsNone(controller) - mock_disconnect_controller.assert_called_once() + mock_disconnect_controller.assert_called() def test_same_endpoint_get_controller(self, mock_api_endpoints, mock_connect): self.libjuju.endpoints = ["127.0.0.1:17070"]