summaryrefslogtreecommitdiff
path: root/python/testData/testRunner/env/nose/test2.py
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-08-20 17:01:23 -0700
committerTor Norbye <tnorbye@google.com>2014-08-20 17:01:23 -0700
commit1aa2e09bdbd413eacb677e9fa4b50630530d0656 (patch)
tree2f4cc6d69645bd460aa253fdecb606d764fbd25d /python/testData/testRunner/env/nose/test2.py
parent02cf98d65c798d368fcec43ed64a001d513bdd4f (diff)
downloadidea-1aa2e09bdbd413eacb677e9fa4b50630530d0656.tar.gz
Snapshot idea/138.1696 from git://git.jetbrains.org/idea/community.git
Change-Id: I50c97b83a815ce635e49a38380ba5b8765e4b16a
Diffstat (limited to 'python/testData/testRunner/env/nose/test2.py')
-rw-r--r--python/testData/testRunner/env/nose/test2.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/python/testData/testRunner/env/nose/test2.py b/python/testData/testRunner/env/nose/test2.py
new file mode 100644
index 000000000000..0a6f80ec7644
--- /dev/null
+++ b/python/testData/testRunner/env/nose/test2.py
@@ -0,0 +1,18 @@
+#from unittest import TestCase
+
+class TestNose:
+ def testOne(self):
+ assert 5 == 2*2
+
+ def testTwo(self):
+ assert True
+
+def testThree():
+ assert 4 == 2*2
+
+def test_evens():
+ for i in range(0, 5):
+ yield check_even, i, i*3
+
+def check_even(n, nn):
+ assert n % 2 == 0 or nn % 2 == 0 \ No newline at end of file