def test_particleless(self):
     with pytest.raises(ValueError):
         mass_density(1 * u.m**-3)
 def test_wrong_units(self):
     with pytest.raises(ValueError):
         mass_density(1 * u.J)
Esempio n. 3
0
 def time_mass_density(self):
     mass_density(1 * u.m ** -3,'p')