#NEWLINE# def test_from_primitive( self ) : #NEWLINE# #INDENT# class ObjectLikeThing ( object ) : #NEWLINE# #INDENT# _context = 'context' #NEWLINE# #UNINDENT# for ( prim_val , out_val ) in prim_val . from_primitive_values : #NEWLINE# #INDENT# self . assertEqual ( out_val , self . field . from_primitive ( ObjectLikeThing , 'attr' , prim_val ) )