#NEWLINE# def test_field_resolve_argument( ) : #NEWLINE# #INDENT# def resolver( instance , args , info ) : #NEWLINE# #INDENT# return args . get ( 'first_name' ) #NEWLINE# #UNINDENT# field = Field ( String ( ) , first_name = String ( ) , description = 'My argument' , resolver = resolver ) #NEWLINE# class Query ( ObjectType ) : #NEWLINE# #INDENT# my_field = field #NEWLINE# #UNINDENT# schema = Schema ( query = Query ) #NEWLINE# type = schema . T ( schema ) #NEWLINE# assert ( type . resolver ( None , { #NEWLINE# #INDENT# 'firstName' : 'Peter' , #NEWLINE# #UNINDENT# } , None ) == 'Peter' )