def test_deprecateStatinfoSetter(self):
        """
        Setting L{twisted.python.filepath.FilePath.statinfo} is deprecated.
        """
        fp = filepath.FilePath(self.mktemp())
        fp.statinfo = None
        warningInfo = self.flushWarnings([self.test_deprecateStatinfoSetter])
        self.assertEqual(len(warningInfo), 1)
        self.assertEqual(warningInfo[0]['category'], DeprecationWarning)
        self.assertEqual(
            warningInfo[0]['message'],
            "twisted.python.filepath.FilePath.statinfo was deprecated in "
            "Twisted 15.0.0; please use other FilePath methods such as "
            "getsize(), isdir(), getModificationTime(), etc. instead")

        Setting L{twisted.python.filepath.FilePath.statinfo} is deprecated.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py