#NEWLINE# @ pytest . mark . parametrize ( 'field' , [ 'created' , 'updated' , 'user' , 'id' ] ) #NEWLINE# def test_it_removes_protected_fields( self , field ) : #NEWLINE# #INDENT# request = testing . DummyRequest ( ) #NEWLINE# annotation = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# schema = schemas . LegacyUpdateAnnotationSchema ( request , annotation ) #NEWLINE# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# data [ field ] = 'something forbidden' #NEWLINE# result = schema . validate ( data ) #NEWLINE# assert ( field not in result )