#NEWLINE# @ methodtrace ( utils . logger ) #NEWLINE# def runTest( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . test_enumerate_devices ( ) #NEWLINE# self . test_get_device_descriptor ( ) #NEWLINE# self . test_get_configuration_descriptor ( ) #NEWLINE# self . test_get_interface_descriptor ( ) #NEWLINE# self . test_get_endpoint_descriptor ( ) #NEWLINE# self . test_open_device ( ) #NEWLINE# self . test_set_configuration ( ) #NEWLINE# self . test_claim_interface ( ) #NEWLINE# self . test_set_interface_altsetting ( ) #NEWLINE# self . test_clear_halt ( ) #NEWLINE# self . test_bulk_write_read ( ) #NEWLINE# self . test_intr_write_read ( ) #NEWLINE# self . test_iso_write_read ( ) #NEWLINE# self . test_ctrl_transfer ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# intf = self . backend . get_interface_descriptor ( intf . dev , 0 , 0 , 0 ) #NEWLINE# self . backend . release_interface ( self . handle , intf . bInterfaceNumber ) #NEWLINE# self . backend . close_device ( self . handle ) #NEWLINE# raise #NEWLINE# #UNINDENT# self . test_release_interface ( ) #NEWLINE# self . test_close_device ( )