#NEWLINE# def testTypeConfigs( self ) : #NEWLINE# #INDENT# arsc = self . apk . get_android_resources ( ) #NEWLINE# configs = arsc . get_type_configs ( None ) #NEWLINE# for ( res_type , test_configs ) in TEST_CONFIGS . items ( ) : #NEWLINE# #INDENT# config_set = set ( test_configs ) #NEWLINE# self . assertIn ( res_type , configs , ( 'resource type %s was not found' % res_type ) ) #NEWLINE# for config in configs [ res_type ] : #NEWLINE# #INDENT# self . assertIn ( config , config_set , ( 'config %r was not expected' % config ) ) #NEWLINE# config_set . remove ( self ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( config_set ) , 0 , ( 'configs were not found: %s' % config_set ) ) #NEWLINE# #UNINDENT# unexpected_types = ( set ( TEST_CONFIGS . keys ( ) ) - set ( configs . keys ( ) ) ) #NEWLINE# self . assertEqual ( len ( unexpected_types ) , 0 , ( 'received unexpected resource types: %s' % unexpected_types ) )