def METHOD_NAME(self):
    class SpecificTarget:
        pass
    class Locator:
        pass
    registry = TargetRegistry()
    with self.assertRaises(LocationNotSupported) as exception_context:
        registry._get_solver(SpecificTarget(), Locator())
    self.assertEqual(exception_context.exception.supported, [])
    self.assertEqual(
        str(exception_context.exception),
        f"Location {Locator!r} is not supported for {SpecificTarget!r}. "
        "Supported these: []",
    )