#NEWLINE# def test_inspector_can_describe_a_bunch_of_large_classes( self ) : #NEWLINE# #INDENT# inspector = jsonrpc . JsonRpcInspector ( { #NEWLINE# #INDENT# 'core.get_uri_schemes' : core . Core . get_uri_schemes , #NEWLINE# 'core.library' : core . LibraryController , #NEWLINE# 'core.playback' : core . PlaybackController , #NEWLINE# 'core.playlists' : core . PlaylistsController , #NEWLINE# 'core.tracklist' : core . TracklistController , #NEWLINE# #UNINDENT# } ) #NEWLINE# methods = inspector . describe ( ) #NEWLINE# self . assertIn ( 'core.get_uri_schemes' , methods ) #NEWLINE# self . assertEqual ( len ( methods [ 'core.get_uri_schemes' ] [ 'params' ] ) , 0 ) #NEWLINE# self . assertIn ( 'core.library.lookup' , methods . keys ( ) ) #NEWLINE# self . assertEqual ( methods [ 'core.library.lookup' ] [ 'params' ] [ 0 ] [ 'name' ] , 'uri' ) #NEWLINE# self . assertIn ( 'core.playback.next' , methods ) #NEWLINE# self . assertEqual ( len ( methods [ 'core.playback.next' ] [ 'params' ] ) , 0 ) #NEWLINE# self . assertIn ( 'core.playlists.get_playlists' , methods ) #NEWLINE# self . assertEqual ( len ( methods [ 'core.playlists.get_playlists' ] [ 'params' ] ) , 1 ) #NEWLINE# self . assertIn ( 'core.tracklist.filter' , methods . keys ( ) ) #NEWLINE# self . assertEqual ( methods [ 'core.tracklist.filter' ] [ 'params' ] [ 0 ] [ 'name' ] , 'criteria' ) #NEWLINE# self . assertEqual ( methods [ 'core.tracklist.filter' ] [ 'params' ] [ 1 ] [ 'name' ] , 'kwargs' ) #NEWLINE# self . assertEqual ( methods [ 'core.tracklist.filter' ] [ 'params' ] [ 1 ] [ 'kwargs' ] , True )