def test_gbxml_remove_zone(self): g=Gbxml(config.xml,config.xsd) g.remove_zone('Zone-DINING_ROOM') l=g.elements('Zone') check=9 self.assertEqual(len(l),check) space=g.element('DINING_ROOM')[0] check=None self.assertEqual(space.get('zoneIdRef'),check)
def test_gbxml_element(self): g=Gbxml(config.xml,config.xsd) e=g.element(id='campus-1') st=g.label(e) check='Campus' self.assertEqual(st,check)