Commit 905d14bc authored by Wichert Akkerman's avatar Wichert Akkerman

I hate unclean checkouts...

parent 64f29aba
......@@ -705,7 +705,6 @@ class ObjectManager(
out=out+((k,stat),)
return marshal.dumps(out)
security.declareProtected(access_contents_information, 'manage_hasId')
def manage_hasId(self, REQUEST):
""" check if the folder has an object with REQUEST['id'] """
......
......@@ -411,16 +411,6 @@ class ObjectManagerTests(PlacelessSetup, unittest.TestCase):
self.failUnless(filename.endswith('.zexp') or
filename.endswith('.xml'))
def test_hasId(self):
om = self._makeOne()
request={'id' : 'test'}
self.assertRaises(KeyError, om.manage_hasId, request)
si = SimpleItem('test')
om._setObject('test', si)
om.manage_hasId(request)
def test_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite( ObjectManagerTests ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment