Skip to content

Commit

Permalink
improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui committed Jan 9, 2020
1 parent f84ea6f commit 3049f4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api_core/tests/unit/test_iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def test___delitem___hit(self):

def test___delitem___miss(self):
policy = self._make_one()
policy.bindings = [
{"role": "a", "members": set(["phred@example.com"])},
{"role": "b", "members": set(["phred@example.com"])}
]
with pytest.raises(KeyError):
del policy["nonesuch"]

Expand Down

0 comments on commit 3049f4e

Please sign in to comment.