'L{twisted.web.static.addSlash} is deprecated.'

def test_addSlashDeprecated(self):

    from twisted.web.static import addSlash
    addSlash(DummyRequest(['']))
    warnings = self.flushWarnings([self.test_addSlashDeprecated])
    self.assertEqual(len(warnings), 1)
    self.assertEqual(warnings[0]['message'], 'twisted.web.static.addSlash    was    deprecated    in    Twisted    16.0.0')
