def test_stringify_permissions_special(self): obj = ACLEncoderMixin() perms = obj._stringify_permissions(['foo', ALL_PERMISSIONS]) assert sorted(perms) == ['all', 'foo']
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']
def test_stringify_permissions_regular_string(self): obj = ACLEncoderMixin() assert obj._stringify_permissions('Foo ') == ['foo']