def test_expand_all_types(self): el_list = lib.expand_tag(self.cib.xpath(".//tag[@id='tag1']")[0]) self.assertEqual(self.get_ids(el_list), ["R1", "C"])
def test_expand_selected_types(self): el_list = lib.expand_tag( self.cib.xpath(".//tag[@id='tag1']")[0], ["clone"] ) self.assertEqual(self.get_ids(el_list), ["C"])
def test_no_tag(self): el_list = lib.expand_tag(self.cib.xpath(".//primitive[@id='R1']")[0]) self.assertEqual(self.get_ids(el_list), ["R1"])