示例#1
0
 def test_other(self):
     """
     L{_checkCPython} returns C{False} when C{platform.python_implementation}
     says we're not running on CPython.
     """
     self.assertFalse(_setup._checkCPython(platform=fakeOtherPlatform))
 def test_other(self):
     """
     L{_checkCPython} returns C{False} when C{platform.python_implementation}
     says we're not running on CPython.
     """
     self.assertFalse(_setup._checkCPython(platform=fakeOtherPlatform))
示例#3
0
 def test_cpython(self):
     """
     L{_checkCPython} returns C{True} when C{platform.python_implementation}
     says we're running on CPython.
     """
     self.assertTrue(_setup._checkCPython(platform=fakeCPythonPlatform))
 def test_cpython(self):
     """
     L{_checkCPython} returns C{True} when C{platform.python_implementation}
     says we're running on CPython.
     """
     self.assertTrue(_setup._checkCPython(platform=fakeCPythonPlatform))