#NEWLINE# @ methodtrace ( utils . logger ) #NEWLINE# def test_get_configuration_descriptor( self ) : #NEWLINE# #INDENT# cfg = self . backend . get_configuration_descriptor ( self . dev , 0 ) #NEWLINE# self . assertEqual ( cfg . bLength , 9 ) #NEWLINE# self . assertEqual ( cfg . bDescriptorType , usb . util . DESC_TYPE_CONFIG ) #NEWLINE# self . assertEqual ( cfg . wTotalLength , 78 ) #NEWLINE# self . assertEqual ( cfg . bNumInterfaces , 1 ) #NEWLINE# self . assertEqual ( cfg . bConfigurationValue , 1 ) #NEWLINE# self . assertEqual ( cfg . iConfiguration , 0 ) #NEWLINE# self . assertEqual ( cfg . bmAttributes , 192 ) #NEWLINE# self . assertEqual ( cfg . bMaxPower , 50 )