def METHOD_NAME(db):
    with bugs_session() as bugs:
        def dud_post(url, auth, json):
            class _PostReturn:
                status_code = 400
            return _PostReturn()
        new_config = config.copy()
        new_config["BUG_TOOL_ENABLED"] = True
        with patch("couchers.servicers.bugs.config", new_config):
            with patch("couchers.servicers.bugs.requests.post", dud_post):
                with pytest.raises(grpc.RpcError) as e:
                    res = bugs.ReportBug(
                        bugs_pb2.ReportBugReq(
                            subject="subject",
                            description="description",
                            results="results",
                            frontend_version="frontend_version",
                            user_agent="user_agent",
                            page="page",
                        )
                    )
                assert e.value.code() == grpc.StatusCode.INTERNAL