#NEWLINE# @ skipIf ( ( sys . version_info < ( 2 , 7 ) ) , 'ElementTree version 1.3 required which comes with Python 2.7' ) #NEWLINE# def test_boot_multiple_devs( self ) : #NEWLINE# #INDENT# diskp = virt . _disk_profile ( 'default' , 'kvm' ) #NEWLINE# nicp = virt . _nic_profile ( 'default' , 'kvm' ) #NEWLINE# xml_data = virt . _gen_xml ( 'hello' , 1 , 512 , diskp , nicp , 'kvm' , boot_dev = 'cdrom network' ) #NEWLINE# root = ET . fromstring ( xml_data ) #NEWLINE# devs = root . findall ( './/boot' ) #NEWLINE# self . assertTrue ( ( len ( devs ) == 2 ) )