Basic test of graph layout

This commit is contained in:
jolo
2017-01-16 23:31:45 +01:00
parent 43e6498713
commit 96948d6f18
2 changed files with 26 additions and 0 deletions
+8
View File
@@ -270,6 +270,14 @@ class BaseTest(object):
if a != b:
self.verify_match(a, b, match_prepare=pprint.pformat)
def check_ge(self, a, b):
if not a >= b:
raise Exception("%s is not greater or equal to %s" % (a, b))
def check_gt(self, a, b):
if not a > b:
raise Exception("%s is not greater to %s" % (a, b))
def check_in(self, item, l):
if not item in l:
raise Exception("item %r not in %r", item, l)