Project

General

Profile

Tâche #13954

Updated by Scrum Master over 5 years ago

<pre>
root@amon:~# py.test /usr/share/era/tests/test_open_save.py
[ ... ]
/usr/share/era/noyau/domparsers.py:478:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

dom_element = <DOM Element: extremite at 0x7f96eeef3710>, zones = {'pedago': <zone:pedago> 140286233640656}, inherited = False

def instantiate_extremite_from_dom(dom_element, zones, inherited = False):
"""Construit une extrémité à partir d'un élément DOM
L{era.tests.test_domparser.test_parse_extremite}
"""
ip_list = []
ip_nodes = dom_element.getElementsByTagName('ip')
for ip_node in ip_nodes:
ip_list.append(ip_node.getAttribute('address'))

zone_name = dom_element.getAttribute('zone')
if zone_name not in zones:
> raise Exception, _("unknown zone %s")%zone_name
E Exception: zone inconnue : bastion

/usr/share/era/noyau/domparsers.py:330: Exception
</pre>

Back