From 9282b864284a1503a10caef5e4dbc592c51150c9 Mon Sep 17 00:00:00 2001 From: beierlm Date: Mon, 31 Jan 2022 15:26:29 -0500 Subject: [PATCH] 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 --- n2vc/tests/unit/test_libjuju.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] -- 2.25.1