Add message handler to assertTrue
@@ -85,7 +85,10 @@ class DiskTestCase:
assert args[0] == args[1]
@contextlib.contextmanager
- def assertTrue(self, a):
+ def assertTrue(self, a, msg=None):
+ if msg:
+ assert a == True, msg
+ else:
assert a == True
@contextlib.contextmanager
