devtools/testlib.py
changeset 549 cd2bdcc16430
parent 535 ad9ac2169089
child 562 bdadb26c4a3c
equal deleted inserted replaced
548:195a0065aaae 549:cd2bdcc16430
   115     valmap = {None: None, 'dtd': DTDValidator, 'xml': SaxOnlyValidator}
   115     valmap = {None: None, 'dtd': DTDValidator, 'xml': SaxOnlyValidator}
   116     no_auto_populate = ()
   116     no_auto_populate = ()
   117     ignored_relations = ()
   117     ignored_relations = ()
   118     
   118     
   119     def __init__(self, *args, **kwargs):
   119     def __init__(self, *args, **kwargs):
       
   120         self.validators = {}
   120         EnvBasedTC.__init__(self, *args, **kwargs)
   121         EnvBasedTC.__init__(self, *args, **kwargs)
   121         for view, valkey in VIEW_VALIDATORS.iteritems():
   122         for view, valkey in VIEW_VALIDATORS.iteritems():
   122             self.validators[view] = self.valmap[valkey]
   123             self.validators[view] = self.valmap[valkey]
   123         
   124         
   124     def custom_populate(self, how_many, cursor):
   125     def custom_populate(self, how_many, cursor):