示例#1
0
 def test_patch(self):
     geo = self.polygon.__geo_interface__
     patch = PolygonPatch(geo)
     self.assertEqual(str(type(patch)),
                      "<class 'matplotlib.patches.PathPatch'>")
     path = patch.get_path()
     self.assertTrue(len(path.vertices) == len(path.codes) == 198)
示例#2
0
 def test_patch(self):
     geo = self.polygon.__geo_interface__
     patch = PolygonPatch(geo)
     self.failUnlessEqual(str(type(patch)), 
         "<class 'matplotlib.patches.PathPatch'>")
     path = patch.get_path()
     self.failUnless(len(path.vertices) == len(path.codes) == 198)
示例#3
0
 def test_patch(self):
     patch = PolygonPatch(self.thing)
     self.assertEqual(str(type(patch)),
                      "<class 'matplotlib.patches.PathPatch'>")
     path = patch.get_path()
     self.assertTrue(len(path.vertices) == len(path.codes) == 198)
示例#4
0
文件: tests.py 项目: wono01/FlatCAM
 def test_patch(self):
     patch = PolygonPatch(self.polygon)
     self.failUnlessEqual(str(type(patch)),
                          "<class 'matplotlib.patches.PathPatch'>")
     path = patch.get_path()
     self.failUnless(len(path.vertices) == len(path.codes) == 198)
示例#5
0
 def test_patch(self):
     patch = PolygonPatch(self.thing)
     self.failUnlessEqual(str(type(patch)), 
         "<class 'matplotlib.patches.PathPatch'>")
     path = patch.get_path()
     self.failUnless(len(path.vertices) == len(path.codes) == 198)