#NEWLINE# def test_it_calls_validator( self , schemas , copy ) : #NEWLINE# #INDENT# request = self . mock_request ( ) #NEWLINE# copy . deepcopy . side_effect = ( lambda x : x ) #NEWLINE# schema = request . LegacyCreateAnnotationSchema . return_value #NEWLINE# views . create ( request ) #NEWLINE# schema . validate . assert_called_once_with ( request . json_body )