changeset 346:c42c91301c40

Changed name of helper functions to hide from nose
author Sigurd Meldgaard <stm@daimi.au.dk>
date Mon, 19 Jul 2010 15:21:57 +0200
parents 4f53fe56b5de
children ef9c34427b2b
files pysmcl/test/unit/test_secret_ifs.py pysmcl/test/unit/test_sugar.py
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/test/unit/test_secret_ifs.py	Mon Jul 19 15:12:50 2010 +0200
+++ b/pysmcl/test/unit/test_secret_ifs.py	Mon Jul 19 15:21:57 2010 +0200
@@ -26,7 +26,7 @@
     cond0 = x
     a = a_else0 + (a_then0 - a_else0) * cond0
 """
-        self.make_test(program, {"x" : (0, 1)}, expected)
+        self.do_if_analysis(program, {"x" : (0, 1)}, expected)
 
     def test_if3(self):
         program = """\
@@ -43,7 +43,7 @@
     else:
         a = 2
 """
-        self.make_test(program, {}, expected)
+        self.do_if_analysis(program, {}, expected)
 
     def test_if2(self):
         expected = """\
@@ -70,10 +70,10 @@
     else:
         a = 3
 """
-        self.make_test(program, {"x" : (0, 1), "y" : (0, 1)}, expected)
+        self.do_if_analysis(program, {"x" : (0, 1), "y" : (0, 1)}, expected)
 
 
-    def make_test(self, program, args, expected):
+    def do_if_analysis(self, program, args, expected):
         parsed = parse(program)
         trans = TransformIfs()
         secret_analysis(parsed.body[0])
--- a/pysmcl/test/unit/test_sugar.py	Mon Jul 19 15:12:50 2010 +0200
+++ b/pysmcl/test/unit/test_sugar.py	Mon Jul 19 15:21:57 2010 +0200
@@ -4,7 +4,7 @@
 from pysmcl.runtime_sugar import runtime_sugar
 
 
-class SecretIfTest(unittest.TestCase):
+class Test(unittest.TestCase):
 
     def test1(self):
         program = """\
@@ -27,9 +27,9 @@
         yield(0)
 """
 
-        self.make_test(program, expected)
+        self.do_analysis(program, expected)
 
-    def make_test(self, program, expected):
+    def do_analysis(self, program, expected):
         parsed = parse(program)
         f = parsed.body[0]
         runtime_sugar(f)