def test_pressure_to_imperial(self): """Test pressure conversion to imperial system.""" assert 77 == \ IMPERIAL_SYSTEM.pressure(77, IMPERIAL_SYSTEM.pressure_unit) self.assertAlmostEqual( IMPERIAL_SYSTEM.pressure(101352.932, METRIC_SYSTEM.pressure_unit), 14.7, places=4)
def test_pressure_to_imperial(self): """Test pressure conversion to imperial system.""" assert 77 == \ IMPERIAL_SYSTEM.pressure(77, IMPERIAL_SYSTEM.pressure_unit) self.assertAlmostEqual(IMPERIAL_SYSTEM.pressure( 101352.932, METRIC_SYSTEM.pressure_unit), 14.7, places=4)
def test_pressure_to_imperial(): """Test pressure conversion to imperial system.""" assert IMPERIAL_SYSTEM.pressure(77, IMPERIAL_SYSTEM.pressure_unit) == 77 assert IMPERIAL_SYSTEM.pressure( 101352.932, METRIC_SYSTEM.pressure_unit) == pytest.approx(14.7, abs=1e-4)