return d
def verify(self, uri_to_verify):
- uri_to_verify = IVerifierURI(uri_to_verify)
if uri_to_verify is None:
return defer.succeed(True)
- elif isinstance(uri_to_verify, uri.CHKFileVerifierURI):
+ uri_to_verify = IVerifierURI(uri_to_verify)
+ if isinstance(uri_to_verify, uri.CHKFileVerifierURI):
v = SimpleCHKFileVerifier(self.parent, uri_to_verify)
return v.start()
else:
def _test_checker_2(self, manifest):
checker1 = self.clients[1].getServiceNamed("checker")
+ self.failUnlessEqual(checker1.checker_results_for(None), [])
+ self.failUnlessEqual(checker1.checker_results_for(list(manifest)[0]),
+ [])
dl = []
starting_time = time.time()
for si in manifest:
for i in res:
self.failUnless(i is True)
d.addCallback(_done)
+ d.addCallback(lambda res: checker1.verify(None))
+ d.addCallback(self.failUnlessEqual, True)
return d