901# make sure document('') works when custom resolvers are in use 902assertEquals=self.assertEquals 903called={'count':0} 904classTestResolver(etree.Resolver): 905defresolve(self,url,id,context): 906assertEquals(url,'file://ANYTHING') 907called['count']+=1 908returnself.resolve_string('<CALLED/>',context)