def test_it_calls_schema_validate(self, copy, schemas):
        copy.deepcopy.side_effect = [mock.sentinel.first_copy,
                                     mock.sentinel.second_copy]
        request = self.mock_request()

        views.create(request)

        assert copy.deepcopy.call_args_list[0] == mock.call(request.json_body)
        schemas.CreateAnnotationSchema.return_value.validate\
            .assert_called_once_with(mock.sentinel.first_copy)
It should call validate() with a deep copy of json_body.
dataset/ETHPy150Open hypothesis/h/h/api/test/views_test.py/TestCreate.test_it_calls_schema_validate