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