Exemplo n.º 1
0
 def testBlame(self):
     feature = Feature(self.repo, geogit.HEAD, "parks/5")
     blame = feature.blame()        
     self.assertEquals(8, len(blame))
     attrs = feature.attributes()
     for k,v in blame.iteritems():
         self.assertTrue(v[0], attrs[k])
Exemplo n.º 2
0
 def testAttributes(self):    	
     feature = Feature(self.repo, geogit.HEAD, "parks/1")    	            
     data = feature.attributes()        
     self.assertEquals(8, len(data))
     self.assertEquals("Public", data["usage"])
     self.assertTrue("owner" in data)
     self.assertTrue("agency" in data)
     self.assertTrue("name" in data)
     self.assertTrue("parktype" in data)
     self.assertTrue("area" in data)
     self.assertTrue("perimeter" in data)  
     self.assertTrue("the_geom" in data)  
     self.assertTrue(isinstance(data["the_geom"][0], Polygon))