def testSequences(self): img = ImageI() assert img.sizeOfAnnotationLinks() >= 0 img.linkAnnotation(None) img.unload() try: assert not img.sizeOfAnnotationLinks() >= 0 assert len(img.copyAnnotationLinks()) == 0 assert False, "can't reach here" except: # These are true, but can't be tested pass
def testSequences(self): img = ImageI() self.assert_(img.sizeOfAnnotationLinks() >= 0) img.linkAnnotation(None) img.unload() try: self.assert_(not img.sizeOfAnnotationLinks() >= 0) self.assert_(len(img.copyAnnotationLinks()) == 0) self.fail("can't reach here") except: # These are true, but can't be tested pass
def testSequences(self): img = ImageI() self.assert_( img.sizeOfAnnotationLinks() >= 0 ) img.linkAnnotation(None) img.unload() try: self.assert_( not img.sizeOfAnnotationLinks() >= 0 ) self.assert_( len(img.copyAnnotationLinks()) == 0 ) self.fail("can't reach here") except: # These are true, but can't be tested pass