class Node:
def __init__(self, mapper):
- print "new node on " + str(mapper)
+ #print "new node on " + str(mapper)
self.mapper = mapper
self.children = util.HashSet()
self.parent = None
assert(len(self.tasks.values()) == len(tasklist)) # "sorted task list not the same size as original task list"
import string,sys
- print string.join([str(t) for t in tasklist], ',')
+ #print string.join([str(t) for t in tasklist], ',')
#sys.exit(0)
return tasklist
import unittest
+echo = True
class PersistTest(unittest.TestCase):
def __init__(self, *args, **params):
unittest.TestCase.__init__(self, *args, **params)
+ def echo(self, text):
+ if echo:
+ print text
class AssertMixin(PersistTest):
def assert_result(self, result, class_, *objects):
- print repr(result)
+ if echo:
+ print repr(result)
self.assert_list(result, class_, objects)
def assert_list(self, result, class_, list):
self.assert_(len(result) == len(list), "result list is not the same size as test list, for class " + class_.__name__)