def METHOD_NAME(self):
    def solver(wrapper, location):
        return 1
    registry = TargetRegistry()
    registry.register_location(
        target_class=float, locator_class=str, solver=solver
    )
    self.assertIs(registry._get_solver(2.1, "dummy"), solver)