gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / astroid / tests / testdata / python3 / data / noendingnewline.py @ 745
History | View | Annotate | Download (506 Bytes)
1 |
import unittest |
---|---|
2 |
|
3 |
|
4 |
class TestCase(unittest.TestCase): |
5 |
|
6 |
def setUp(self): |
7 |
unittest.TestCase.setUp(self)
|
8 |
|
9 |
|
10 |
def tearDown(self): |
11 |
unittest.TestCase.tearDown(self)
|
12 |
|
13 |
def testIt(self): |
14 |
self.a = 10 |
15 |
self.xxx()
|
16 |
|
17 |
|
18 |
def xxx(self): |
19 |
if False: |
20 |
pass
|
21 |
print('a')
|
22 |
|
23 |
if False: |
24 |
pass
|
25 |
pass
|
26 |
|
27 |
if False: |
28 |
pass
|
29 |
print('rara')
|
30 |
|
31 |
|
32 |
if __name__ == '__main__': |
33 |
print('test2')
|
34 |
unittest.main() |
35 |
|
36 |
|