コード例 #1
0
ファイル: test_win32.py プロジェクト: Architektor/PySnip
    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")
コード例 #2
0
    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")
コード例 #3
0
ファイル: test_win32.py プロジェクト: Architektor/PySnip
 def test_getProgramFilesPath(self):
     """
     L{getProgramFilesPath} returns the "program files" path on win32.
     """
     self.assertIsInstance(win32.getProgramFilesPath(), str)
コード例 #4
0
 def test_getProgramFilesPath(self):
     """
     L{getProgramFilesPath} returns the "program files" path on win32.
     """
     self.assertIsInstance(win32.getProgramFilesPath(), str)