'L{twisted.python.url} is deprecated since Twisted 17.5.0.'

def test_urlDeprecation(self):

    from twisted.python import url
    url
    warningsShown = self.flushWarnings([self.test_urlDeprecation])
    self.assertEqual(1, len(warningsShown))
    self.assertEqual(u'twisted.python.url    was    deprecated    in    Twisted    17.5.0:    Please    use    hyperlink    from    PyPI    instead.', warningsShown[0][u'message'])
