'The C{__version__} attribute of former subprojects is deprecated.'

def test_deprecated(self):

    module = reflect.namedAny('twisted.{}'.format(self.subproject))
    self.assertEqual(module.__version__, twisted.__version__)
    warningsShown = self.flushWarnings()
    self.assertEqual(1, len(warningsShown))
    self.assertEqual('twisted.{}.__version__    was    deprecated    in    Twisted    16.0.0:    Use    twisted.__version__    instead.'.format(self.subproject), warningsShown[0]['message'])
