[Zope3-checkins] CVS: Zope3/src/zope/app/dav/tests - test_davschemaservice.py:1.2
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 20 May 2003 15:43:58 -0400
Update of /cvs-repository/Zope3/src/zope/app/dav/tests
In directory cvs.zope.org:/tmp/cvs-serv24523/src/zope/app/dav/tests
Modified Files:
test_davschemaservice.py
Log Message:
More work on DAV support. Got it mostly working, but I cannot commit before writing tests :) Also, added OPTIONS view, and whitespace cleanup here and there.
=== Zope3/src/zope/app/dav/tests/test_davschemaservice.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/dav/tests/test_davschemaservice.py:1.1 Tue May 20 11:46:39 2003
+++ Zope3/src/zope/app/dav/tests/test_davschemaservice.py Tue May 20 15:43:27 2003
@@ -83,6 +83,15 @@
r.sort()
self.assertEqual(r, [I2, I3])
+ r = list(service.availableNamespaces())
+ r.sort()
+ self.assertEqual(r, ['http://www.foo.bag/boxschema/', \
+ 'http://www.foo.bar/boxschema/', \
+ 'http://www.foo.baz/boxschema/'])
+
+ ns = service.queryNamespace(I3, '')
+ self.assertEqual(ns, 'http://www.foo.baz/boxschema/')
+
def test_suite():
return TestSuite((makeSuite(Test),))