added tests for pytest runner

This commit is contained in:
Ekaterina Tuzova
2012-10-26 17:53:35 +04:00
parent cbd86c9ccf
commit 2a2f00915e
2 changed files with 25 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
class TestPyTest:
def testOne(self):
assert 4 == 2*2
def testTwo(self):
assert True
def testThree():
assert 4 == 2*2
+16
View File
@@ -0,0 +1,16 @@
class TestPyTest:
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