'Accessing L{PotentialZombieWarning} via the
I{PotentialZombieWarning} attribute of L{twisted.internet.error}
results in a deprecation warning being emitted.'

def test_deprecated(self):

    from twisted.internet import error
    error.PotentialZombieWarning
    warnings = self.flushWarnings([self.test_deprecated])
    self.assertEqual(warnings[0]['category'], DeprecationWarning)
    self.assertEqual(warnings[0]['message'], 'twisted.internet.error.PotentialZombieWarning    was    deprecated    in    Twisted    10.0.0:    There    is    no    longer    any    potential    for    zombie    process.')
    self.assertEqual(len(warnings), 1)
