#NEWLINE# def test_dict_dir( self ) : #NEWLINE# #INDENT# class A ( object ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# self . a = 1 #NEWLINE# self . b = 2 #NEWLINE# #UNINDENT# def __getattribute__( self , name ) : #NEWLINE# #INDENT# if ( name == 'a' ) : #NEWLINE# #INDENT# raise AttributeError #NEWLINE# #UNINDENT# return object . __getattribute__ ( self , name ) #NEWLINE# #UNINDENT# #UNINDENT# a = A ( ) #NEWLINE# adict = wildcard . dict_dir ( a ) #NEWLINE# assert ( 'a' not in adict ) #NEWLINE# self . assertEqual ( adict [ 'b' ] , 2 )