Skip to content

Commit

Permalink
fix(tests): remove low version error assertion from iam conditions sy…
Browse files Browse the repository at this point in the history
…stem tests (#53)
  • Loading branch information
jkwlui authored Feb 12, 2020
1 parent 63abf07 commit 8904aee
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,6 @@ def test_get_set_iam_policy(self):
self.assertEqual(returned_policy.version, 3)
self.assertEqual(returned_policy.bindings, policy.bindings)

with pytest.raises(
BadRequest, match="cannot be less than the existing policy version"
):
bucket.get_iam_policy()
with pytest.raises(
BadRequest, match="cannot be less than the existing policy version"
):
bucket.get_iam_policy(requested_policy_version=2)

fetched_policy = bucket.get_iam_policy(requested_policy_version=3)
self.assertEqual(fetched_policy.bindings, returned_policy.bindings)

Expand Down

0 comments on commit 8904aee

Please sign in to comment.