]> rtime.felk.cvut.cz Git - wvtest.git/blobdiff - python/t/twvtest.py
Import wvtest for python from eqldata project.
[wvtest.git] / python / t / twvtest.py
diff --git a/python/t/twvtest.py b/python/t/twvtest.py
new file mode 100644 (file)
index 0000000..8a092e3
--- /dev/null
@@ -0,0 +1,30 @@
+from wvtest import *
+
+last=None
+
+@wvtest
+def test1():
+    WVPASSLT(1, 2)
+    WVPASSLE(1, 1)
+    WVPASSGT(2, 1)
+    WVPASSGE(2, 2)
+    
+    # ensure tests run in the order they were declared
+    global last
+    WVPASSEQ(last, None)
+    last='test1'
+
+@wvtest
+def booga2():
+    # ensure tests run in the order they were declared
+    global last
+    WVPASSEQ(last, 'test1')
+    last='booga2'
+    
+@wvtest
+def booga1():
+    # ensure tests run in the order they were declared
+    global last
+    WVPASSEQ(last, 'booga2')
+    last='booga1'
+