def testPropfind(self): """ Test of the propfind methods. (This is sort of redundant, since this is implicitly run by the setup) """ # ResourceType MUST be defined, and SHOULD be returned on a propfind # for "allprop" if I have the permission to see it. # So, no ResourceType returned seems like a bug in bedework if 'nopropfind' in self.server_params: raise SkipTest("Skipping propfind test, " "re test suite configuration. " "Perhaps the caldav server is not adhering to " "the standards") # first a raw xml propfind to the root URL foo = self.caldav.propfind( self.principal.url, props='<?xml version="1.0" encoding="UTF-8"?>' '<D:propfind xmlns:D="DAV:">' ' <D:allprop/>' '</D:propfind>') assert ('resourcetype' in to_local(foo.raw)) # next, the internal _query_properties, returning an xml tree ... foo2 = self.principal._query_properties([ dav.Status(), ]) assert ('resourcetype' in to_local(foo.raw))
def testPropfind(self): """ Test of the propfind methods. (This is sort of redundant, since this is implicitly run by the setup) """ ## first a raw xml propfind to the root URL foo = self.caldav.propfind( self.principal.url, props="""<?xml version="1.0" encoding="UTF-8"?> <D:propfind xmlns:D="DAV:"> <D:allprop/> </D:propfind>""") assert ('resourcetype' in to_local(foo.raw)) ## next, the internal _query_properties, returning an xml tree ... foo2 = self.principal._query_properties([ dav.Status(), ]) assert ('resourcetype' in to_local(foo.raw))