'L{twisted.python.compat.OrderedDict} is deprecated.'

def test_deprecated(self):

    from twisted.python.compat import OrderedDict
    OrderedDict
    currentWarnings = self.flushWarnings(offendingFunctions=[self.test_deprecated])
    self.assertEqual(currentWarnings[0]['message'], 'twisted.python.compat.OrderedDict    was    deprecated    in    Twisted    15.5.0:    Use    collections.OrderedDict    instead.')
    self.assertEqual(currentWarnings[0]['category'], DeprecationWarning)
    self.assertEqual(len(currentWarnings), 1)
