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