From 4cc3d9c558b4a9b5b306fe6b2976dc6a8ec396dd Mon Sep 17 00:00:00 2001 From: David Ames Date: Thu, 2 Nov 2017 11:50:59 -0700 Subject: [PATCH] Fix lint errors and typo --- tests/core/test_hookenv.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/tests/core/test_hookenv.py b/tests/core/test_hookenv.py index 540178f43..ae361be75 100644 --- a/tests/core/test_hookenv.py +++ b/tests/core/test_hookenv.py @@ -1674,18 +1674,14 @@ def test_network_get_primary(self, check_output): @patch.object(hookenv, 'relation_get') def test_ingress_address(self, relation_get): - """Ensure ingress_address returns the ingress-address when availble - and returns the private-address when ingress-address is not availabe. + """Ensure ingress_address returns the ingress-address when available + and returns the private-address when not. """ - _with_ingress = { - 'egress-subnets': '10.5.0.23/32', - 'ingress-address': '10.5.0.23', - 'private-address': '172.16.5.10', - } - - _without_ingress = { - 'private-address': '172.16.5.10', - } + _with_ingress = {'egress-subnets': '10.5.0.23/32', + 'ingress-address': '10.5.0.23', + 'private-address': '172.16.5.10'} + + _without_ingress = {'private-address': '172.16.5.10'} # Return the ingress-address relation_get.return_value = _with_ingress