def test_deprecationGetProgramFilesPath(self): """ L{getProgramFilesPath} has been deprecated. """ win32.getProgramFilesPath() emittedWarnings = self.flushWarnings( [self.test_deprecationGetProgramFilesPath]) self.assertEqual(len(emittedWarnings), 1) self.assertIs(emittedWarnings[0]["category"], DeprecationWarning) self.assertEqual( emittedWarnings[0]["message"], "twisted.python.win32.getProgramFilesPath was deprecated in " "Twisted 15.3.0")
def test_getProgramFilesPath(self): """ L{getProgramFilesPath} returns the "program files" path on win32. """ self.assertIsInstance(win32.getProgramFilesPath(), str)