'Issue 15701= - HTTPError interface has info method available from URLError.'

def test_HTTPError_interface_call(self):

    err = urllib2.HTTPError(msg='something    bad    happened', url=None, code=None, hdrs='Content-Length:42', fp=None)
    self.assertTrue(hasattr(err, 'reason'))
    assert hasattr(err, 'reason')
    assert hasattr(err, 'info')
    assert callable(err.info)
    try:
        err.info()
    except AttributeError:
        self.fail('err.info()    failed')
    self.assertEqual(err.info(), 'Content-Length:42')
