Exemplo n.º 1
0
 def test_Property_extraParams(self):
     c = Component(self.zp, 'Component')
     c.addProperty('oids', Type='int', value=2)
     self.assertEqual(c.properties['oids'].Type, 'int')
     self.assertEqual(c.properties['oids'].value, 2)
Exemplo n.º 2
0
 def test_Property_default(self):
     c = Component(self.zp, 'Component')
     c.addProperty('oids')
     self.assertEqual(c.properties.keys(), ['oids'])