def test_handle_builder(self, request_builder, method_annotation_mock): handler = decorators.MethodAnnotationHandler([method_annotation_mock]) handler.handle_builder(request_builder) method_annotation_mock.modify_request.assert_called_with( request_builder)
def test_annotations(self, method_annotation_mock): handler = decorators.MethodAnnotationHandler([method_annotation_mock]) assert list(handler.annotations) == [method_annotation_mock]