From 62bcc58d7859fc2bdf5bab4a64b991e12250884b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 25 Jan 2009 18:05:08 +0000 Subject: - It is no longer permissible for a security ACE to contain a "nested" list of permissions (e.g. ``(Allow, Everyone, ['read', ['view', ['write', 'manage']]])`)`. The list must instead be fully expanded (e.g. ``(Allow, Everyone, ['read', 'view', 'write', 'manage])``). This feature was never documented, and was never an API, so it's not a backwards incompatibility. --- repoze/bfg/tests/test_security.py | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'repoze/bfg/tests/test_security.py') diff --git a/repoze/bfg/tests/test_security.py b/repoze/bfg/tests/test_security.py index 3ee89d9c3..69b92cd2f 100644 --- a/repoze/bfg/tests/test_security.py +++ b/repoze/bfg/tests/test_security.py @@ -531,27 +531,6 @@ class TestACLDenied(unittest.TestCase): self.failUnless('" % msg in repr(denied)) -class TestFlatten(unittest.TestCase): - def _callFUT(self, item): - from repoze.bfg.security import _flatten - return _flatten(item) - - def test_flat_sequence(self): - result = self._callFUT([1, 2, 3]) - self.assertEqual(result, [1, 2, 3]) - - def test_singly_nested_sequence(self): - result = self._callFUT([1, [2, 3]]) - self.assertEqual(result, [1, 2, 3]) - - def test_doubly_nested_sequence(self): - result = self._callFUT([1, [2, [3]]]) - self.assertEqual(result, [1, 2, 3]) - - def test_mix_str_unicode_sequence(self): - result = self._callFUT([1, [2, [3]], u'a', ('b', set(['c', 'd']))]) - self.assertEqual(result, [1, 2, 3, u'a', 'b', 'c', 'd']) - class DummyContext: pass -- cgit v1.2.3