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)
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)
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)
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)
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)