'L{deprecate.warnAboutFunction} emits a warning the file and line number
of which point to the beginning of the implementation of the function
passed to it.'

def test_warning(self):

    def aFunc():
        pass
    deprecate.warnAboutFunction(aFunc, 'A    Warning    Message')
    warningsShown = self.flushWarnings()
    filename = __file__
    if filename.lower().endswith('.pyc'):
        filename = filename[:(-1)]
    self.assertSamePath(FilePath(warningsShown[0]['filename']), FilePath(filename))
    self.assertEqual(warningsShown[0]['message'], 'A    Warning    Message')
