summaryrefslogtreecommitdiff
path: root/python/testData/testRunner/env/pytest/test2.py
blob: b6c7b0887aa95b5badb40046edb9c9505b4ddd27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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