コード例 #1
0
ファイル: test_app.py プロジェクト: Scalr/celery
 def test_platform_pypy(self):
     with mock.platform_pyimp():
         with mock.sys_platform('darwin'):
             with mock.pypy_version((1, 4, 3)):
                 assert 'PyPy' in pyimplementation()
             with mock.pypy_version((1, 4, 3, 'a4')):
                 assert 'PyPy' in pyimplementation()
コード例 #2
0
ファイル: test_app.py プロジェクト: tayfun/celery
 def test_platform_pypy(self):
     with mock.platform_pyimp():
         with mock.sys_platform("darwin"):
             with mock.pypy_version((1, 4, 3)):
                 assert "PyPy" in pyimplementation()
             with mock.pypy_version((1, 4, 3, "a4")):
                 assert "PyPy" in pyimplementation()
コード例 #3
0
ファイル: test_app.py プロジェクト: Scalr/celery
 def test_platform_fallback(self):
     with mock.platform_pyimp():
         with mock.sys_platform('darwin'):
             with mock.pypy_version():
                 assert 'CPython' == pyimplementation()
コード例 #4
0
ファイル: test_app.py プロジェクト: tayfun/celery
 def test_platform_fallback(self):
     with mock.platform_pyimp():
         with mock.sys_platform("darwin"):
             with mock.pypy_version():
                 assert "CPython" == pyimplementation()