#NEWLINE# def test_get_object_item_with_formatters( self ) : #NEWLINE# #INDENT# class Fake ( object ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# self . id = 'test_id' #NEWLINE# self . name = 'test_name' #NEWLINE# self . test_user = 'test' #NEWLINE# #UNINDENT# #UNINDENT# class FakeCallable ( object ) : #NEWLINE# #INDENT# def __call__( self , * args , **kwargs ) : #NEWLINE# #INDENT# return 'pass' #NEWLINE# #UNINDENT# #UNINDENT# fields = ( 'name' , 'id' , 'test user' , 'is_public' ) #NEWLINE# formatters = { #NEWLINE# #INDENT# 'is_public' : FakeCallable ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# item = Fake ( ) #NEWLINE# act = utils . get_item_properties ( item , fields , formatters = formatters ) #NEWLINE# self . assertEqual ( ( 'test_name' , 'test_id' , 'test' , 'pass' ) , act )