def test_stringify_permissions_special(self):
     obj = ACLEncoderMixin()
     perms = obj._stringify_permissions(['foo', ALL_PERMISSIONS])
     assert sorted(perms) == ['all', 'foo']
示例#2
0
 def test_stringify_permissions_special(self):
     obj = ACLEncoderMixin()
     perms = obj._stringify_permissions(['foo', ALL_PERMISSIONS])
     assert sorted(perms) == ['all', 'foo']
 def test_stringify_permissions_regular_string(self):
     obj = ACLEncoderMixin()
     assert obj._stringify_permissions('Foo  ') == ['foo']
示例#4
0
 def test_stringify_permissions_regular_string(self):
     obj = ACLEncoderMixin()
     assert obj._stringify_permissions('Foo  ') == ['foo']