FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/unittests/isolated_test.py at cefpython53 · pythonthings/cefpython · GitHub
pythonthings
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
unittests
/
isolated_test.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (27 loc) · 815 Bytes
Breadcrumbs
cefpython
/
unittests
/
isolated_test.py
Copy path
File metadata and controls
38 lines (27 loc) · 815 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
Test isolated test. Isolated tests are run each using a new instance
of Python interpreter. They also implement some unique features for
our use case. See main_test.py for some real tests.
"""
import
unittest
# noinspection PyUnresolvedReferences
import
_test_runner
from
os
.
path
import
basename
# Globals
g_count
=
0
class
IsolatedTest1
(
unittest
.
TestCase
):
def
test_isolated1
(
self
):
global
g_count
g_count
+=
1
self
.
assertEqual
(
g_count
,
1
)
def
test_isolated2
(
self
):
global
g_count
g_count
+=
1
self
.
assertEqual
(
g_count
,
2
)
class
IsolatedTest2
(
unittest
.
TestCase
):
def
test_isolated3
(
self
):
global
g_count
g_count
+=
1
self
.
assertEqual
(
g_count
,
1
)
if
__name__
==
"__main__"
:
_test_runner
.
main
(
basename
(
__file__
))
Back
|
FazBrowse Home
|
New Git URL