'L{getDeprecationWarningString} returns a string that tells us that a
callable was deprecated at a certain released version of Twisted, with
a message containing additional information about the deprecation.'

def test_getDeprecationWarningStringWithFormat(self):

    version = Version('Twisted', 8, 0, 0)
    format = (DEPRECATION_WARNING_FORMAT + ':    This    is    a    message')
    self.assertEqual(getDeprecationWarningString(self.test_getDeprecationWarningString, version, format), ('%s.DeprecationWarningsTests.test_getDeprecationWarningString    was    deprecated    in    Twisted    8.0.0:    This    is    a    message' % (__name__,)))
