'Verification logic for L{test_deprecatedModule}.'

def checkOneWarning(self, modulePath):

    from package import module
    self.assertEqual(FilePath(module.__file__.encode('utf-8')), modulePath)
    emitted = self.flushWarnings([self.checkOneWarning])
    self.assertEqual(len(emitted), 1)
    self.assertEqual(emitted[0]['message'], 'package.module    was    deprecated    in    Package    1.2.3:    message')
    self.assertEqual(emitted[0]['category'], DeprecationWarning)
