[Checkins] SVN: z3c.dav/trunk/src/z3c/dav/tests/test_proppatch.py
Add test to verify that any unauthorized errors are returned
directly to
Michael Kerrin
michael.kerrin at openapp.ie
Sun May 6 11:29:53 EDT 2007
Log message for revision 75571:
Add test to verify that any unauthorized errors are returned directly to
user.
Changed:
U z3c.dav/trunk/src/z3c/dav/tests/test_proppatch.py
-=-
Modified: z3c.dav/trunk/src/z3c/dav/tests/test_proppatch.py
===================================================================
--- z3c.dav/trunk/src/z3c/dav/tests/test_proppatch.py 2007-05-06 15:27:25 UTC (rev 75570)
+++ z3c.dav/trunk/src/z3c/dav/tests/test_proppatch.py 2007-05-06 15:29:52 UTC (rev 75571)
@@ -602,7 +602,15 @@
self.assertEqual(IObjectModifiedEvent.providedBy(self.events[0]), True)
self.assertEqual(self.events[0].object, resource)
+ def test_unauthorized_proppatch(self):
+ request = TestRequest(
+ set_properties = """<Dt:unauthprop xmlns:Dt="DAVtest:">Example Text Prop</Dt:unauthprop>""")
+ resource = Resource("Text Prop", 10)
+ propp = z3c.dav.proppatch.PROPPATCH(resource, request)
+ self.assertRaises(Unauthorized, propp.PROPPATCH)
+
+
class DEADProperties(object):
interface.implements(z3c.dav.interfaces.IOpaquePropertyStorage)
More information about the Checkins
mailing list