Re: [Zope-CMF] Help with tests

2009-06-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charlie Clark wrote: Hi, I'm having a little trouble with writing the tests for my formlib folder contents view replacement. The basic tests (based on yuppie's doctests) are fine but incomplete. I'm now integrating batching and am getting

Re: [Zope-CMF] Help with tests

2009-06-07 Thread Charlie Clark
Am 07.06.2009 um 15:07 schrieb Tres Seaver: Do you need to set up a security manager with 'user_foo', grep for 'newSecurityManager' in other CMF tests. Hi Tres, I've tried that but am not having much success: def test_check_batching(self): user =

Re: [Zope-CMF] Help with tests

2009-06-07 Thread Charlie Clark
Am 07.06.2009 um 15:26 schrieb Charlie Clark: Hi Tres, I've tried that but am not having much success: Scratch that - invoking an unrestricted user seems to do the trick: def test_check_batching(self): newSecurityManager(None, UnrestrictedUser('user_foo',