Skip to content
Permalink
Browse files
fix(tests): remove low version error assertion from iam conditions sy…
…stem tests (#53)
  • Loading branch information
jkwlui committed Feb 12, 2020
1 parent 63abf07 commit 8904aee9ad5dc01ab83e1460b6f186a739668eb7
Showing with 0 additions and 9 deletions.
  1. +0 −9 tests/system.py
@@ -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)

0 comments on commit 8904aee

Please sign in to comment.