def testAddingProtocol(self):
        f = ErrorRaisingFetcher(RuntimeError())
        fetchers.setDefaultFetcher(f, wrap_exceptions=False)

        try:
            discover.discover('users.stompy.janrain.com:8000/x')
        except DiscoveryFailure, why:
            self.fail('failed to parse url with port correctly')
        except __HOLE__:
            pass #expected

        fetchers.setDefaultFetcher(None)
dataset/ETHPy150Open adieu/python-openid/openid/test/test_discover.py/TestNormalization.testAddingProtocol