#NEWLINE# def test_create_image_from_file( self ) : #NEWLINE# #INDENT# driver = self . selenium #NEWLINE# driver . get ( ( '%s%s' % ( formats . live_server_url , CREATE_URL ) ) ) #NEWLINE# wait = self . ui . WebDriverWait ( driver , 10 , ignored_exceptions = [ socket_timeout ] ) #NEWLINE# wait . until ( ( lambda x : driver . find_element_by_id ( 'id_disk_format' ) ) ) #NEWLINE# srctypes = self . ui . Select ( driver . find_element_by_id ( 'id_source_type' ) ) #NEWLINE# srctypes . select_by_value ( 'file' ) #NEWLINE# driver . find_element_by_id ( 'id_image_file' ) . send_keys ( '/tmp/test.iso' ) #NEWLINE# formats = self . ui . Select ( driver . find_element_by_id ( 'id_disk_format' ) ) #NEWLINE# body = formats . first_selected_option #NEWLINE# self . assertTrue ( ( 'ISO' in body . text ) , 'ISO should be selected when the extension is *.iso' )