def setUp(self): super(CatalogHackTests, self).setUp() self.hacks = _discover._VersionHacks() self.hacks.add_discover_hack(self.IDENTITY, re.compile('/v2.0/?$'), '/')