Basic test of graph layout

This commit is contained in:
jolo committed 2017-01-17 00:46:51 +01:00
1 parent 43e6498713
commit 96948d6f18
2 files changed
+26

No files matched your search

+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)