'L{util.getPluginDirs} is deprecated.'

def test_getPluginDirs(self):

    util.getPluginDirs()
    currentWarnings = self.flushWarnings(offendingFunctions=[self.test_getPluginDirs])
    self.assertEqual(currentWarnings[0]['message'], 'twisted.python.util.getPluginDirs    is    deprecated    since    Twisted    12.2.')
    self.assertEqual(currentWarnings[0]['category'], DeprecationWarning)
    self.assertEqual(len(currentWarnings), 1)
