Beispiel #1
0
 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)
Beispiel #2
0
 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)