def test_weyl_ValueError_wrong_config_length(): testarr = np.ones((4, 4, 4, 4), dtype=int).tolist() syms = sympy.symbols("x y z w") try: obj = WeylTensor(testarr, syms, config="uuu", parent_metric=None) assert False except ValueError: assert True
def test_weyl_TypeError(): testarr = np.ones((4, 4, 4, 4), dtype=int).tolist() syms = 0 try: obj = WeylTensor(testarr, syms) assert False except TypeError: assert True