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 <mark.beierl@canonical.com>
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"]