示例#1
0
 def testAttributeCount(self):
     f = QgsFeature()
     self.assertEqual(f.attributeCount(), 0)
     f.setAttributes([1, 2, 3])
     self.assertEqual(f.attributeCount(), 3)