'Setting L{twisted.python.filepath.FilePath.statinfo} is deprecated.'

def test_deprecateStatinfoSetter(self):

    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')
