]> rtime.felk.cvut.cz Git - wvtest.git/blob - python/t/twvtest.py
Import wvtest for python from eqldata project.
[wvtest.git] / python / t / twvtest.py
1 from wvtest import *
2
3 last=None
4
5 @wvtest
6 def test1():
7     WVPASSLT(1, 2)
8     WVPASSLE(1, 1)
9     WVPASSGT(2, 1)
10     WVPASSGE(2, 2)
11     
12     # ensure tests run in the order they were declared
13     global last
14     WVPASSEQ(last, None)
15     last='test1'
16
17 @wvtest
18 def booga2():
19     # ensure tests run in the order they were declared
20     global last
21     WVPASSEQ(last, 'test1')
22     last='booga2'
23     
24 @wvtest
25 def booga1():
26     # ensure tests run in the order they were declared
27     global last
28     WVPASSEQ(last, 'booga2')
29     last='booga1'
30