def test6(self): sz = 5 cont = TestModule.DemoContainer(sz) p = 0 for itm in cont: self.failUnless(itm.GetVal() == p) p += 1 self.failUnless(p == sz)
def test5b(self): sz = 5 vect = TestModule.buildSPtrVector(sz) self.failUnless(len(vect)==sz) p = 0 for itm in vect: self.failUnless(itm.GetVal()==p) p+=1
def test5b(self): sz = 5 vect = TestModule.buildSPtrVector(sz) self.failUnless(len(vect) == sz) p = 0 for itm in vect: self.failUnless(itm.GetVal() == p) p += 1
def test5(self): sz = 5 vect = TestModule.buildSPtrVector(sz) self.failUnless(len(vect)==sz) for i in range(sz): self.failUnless(vect[i].GetVal()==i)
def test3(self): obj = TestModule.buildSPtr(3); self.failUnless(obj.GetVal()==3)
def test5(self): sz = 5 vect = TestModule.buildSPtrVector(sz) self.failUnless(len(vect) == sz) for i in range(sz): self.failUnless(vect[i].GetVal() == i)
def test3(self): obj = TestModule.buildSPtr(3) self.failUnless(obj.GetVal() == 3)
def test1(self): obj = TestModule.DemoKlass(3) self.failUnless(obj.GetVal() == 3)
def test2(self): obj = TestModule.buildPtr(3) self.failUnless(obj.GetVal() == 3)