Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Review Changes3
Browse files Browse the repository at this point in the history
chemelnucfin committed Feb 22, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 98f0cb7 commit 8db085b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions storage/tests/unit/test_acl.py
Original file line number Diff line number Diff line change
@@ -137,6 +137,14 @@ def _get_target_class():
def _make_one(self, *args, **kw):
return self._get_target_class()(*args, **kw)

def test_validate_predefined(self):
ACL = self._get_target_class()
self.assertIsNone(ACL.validate_predefined(None))
self.assertEqual(ACL.validate_predefined('public-read'), 'publicRead')
self.assertEqual(ACL.validate_predefined('publicRead'), 'publicRead')
with self.assertRaises(ValueError):
ACL.validate_predefined('publicread')

def test_ctor(self):
acl = self._make_one()
self.assertEqual(acl.entities, {})

0 comments on commit 8db085b

Please sign in to comment.