Exemple #1
0
 def testSubBoundingBoxY(self):
     cc = Chaincode([0, 0], "44464660012075602223")
     self.failUnless(cc.subBoundingBox(yedge=[-1, 0.5]) == [0, 3])
 def testSubBoundingBoxY(self):
     cc = Chaincode([0, 0], "44464660012075602223")
     self.assertTrue(cc.subBoundingBox(yedge=[-1, 0.5]) == [0, 3])
Exemple #3
0
 def testSubBoundingBoxX(self):
     cc = Chaincode([0, 0], "44464660012075602223")
     self.failUnless(cc.subBoundingBox(xedge=[0.1, 2]) == [0, 3])
 def testSubBoundingBoxX(self):
     cc = Chaincode([0, 0], "44464660012075602223")
     self.assertTrue(cc.subBoundingBox(xedge=[0.1, 2]) == [0, 3])