def isTrue(self, expr):
        testval = self.session.run(expr)
        if isinstance(testval, np.ndarray):
            testval = np.all(testval)
        return self.assertTrue(testval)
assert that an expression evaluates to True
dataset/ETHPy150Open xraypy/xraylarch/tests/utils.py/TestCase.isTrue