'L{deprecate.warnAboutFunction} emits a C{DeprecationWarning} with the
number of a line within the implementation of the function passed to it.'

def test_warningLineNumber(self):

    from twisted_private_helper import module
    module.callTestFunction()
    warningsShown = self.flushWarnings()
    self.assertSamePath(FilePath(warningsShown[0]['filename'].encode('utf-8')), self.package.sibling('twisted_private_helper').child('module.py'))
    self.assertEqual(warningsShown[0]['lineno'], 9)
    self.assertEqual(warningsShown[0]['message'], 'A    Warning    String')
    self.assertEqual(len(warningsShown), 1)
