From 3049f4ef8f8d16c8f5e5053bd21f5c449cbdd17b Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Wed, 8 Jan 2020 17:17:23 -0800 Subject: [PATCH] improve test coverage --- api_core/tests/unit/test_iam.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api_core/tests/unit/test_iam.py b/api_core/tests/unit/test_iam.py index 788392e48cada..c85a458356b6d 100644 --- a/api_core/tests/unit/test_iam.py +++ b/api_core/tests/unit/test_iam.py @@ -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"]