Skip to content

Commit

Permalink
Fix lint errors and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thedac committed Nov 2, 2017
1 parent a710224 commit 4cc3d9c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions tests/core/test_hookenv.py
Expand Up @@ -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
Expand Down

0 comments on commit 4cc3d9c

Please sign in to comment.