#NEWLINE# def test_attr_matches( self ) : #NEWLINE# #INDENT# self . assertEqual ( self . stdcompleter . attr_matches ( 'str.s' ) , [ 'str.{}(' . format ( x ) for x in dir ( str ) if x . startswith ( 's' ) ] ) #NEWLINE# self . assertEqual ( self . stdcompleter . attr_matches ( 'tuple.foospamegg' ) , [ ] ) #NEWLINE# self . assertEqual ( self . completer . attr_matches ( 'CompleteMe.sp' ) , [ 'CompleteMe.spam' ] ) #NEWLINE# self . assertEqual ( self . completer . attr_matches ( 'Completeme.egg' ) , [ ] ) #NEWLINE# CompleteMe . me = CompleteMe #NEWLINE# self . assertEqual ( self . completer . attr_matches ( 'CompleteMe.me.me.sp' ) , [ 'CompleteMe.me.me.spam' ] ) #NEWLINE# self . assertEqual ( self . completer . attr_matches ( 'egg.s' ) , [ 'egg.{}(' . format ( x ) for x in dir ( str ) if x . startswith ( 's' ) ] )