def test_all_numpy_func(self): q = [0, 1] * self.ureg.m self.assertFalse(np.all(q)) self.assertRaises(ValueError, np.all, self.q_temperature)
def test_all_numpy_func(self): q = [0, 1] * self.ureg.m assert not np.all(q) with pytest.raises(ValueError): np.all(self.q_temperature)