def test_cfunits2pint(self, pr_series): u = cfunits2pint(pr_series([1, 2])) assert (str(u)) == 'kilogram / meter ** 2 / second' assert pint2cfunits(u) == 'kg m-2 s-1' u = cfunits2pint('m^3 s-1') assert str(u) == 'meter ** 3 / second' assert pint2cfunits(u) == 'm^3 s-1'
def test_cfunits2pint(self, pr_series): u = units2pint(pr_series([1, 2])) assert (str(u)) == "kilogram / meter ** 2 / second" assert pint2cfunits(u) == "kg m-2 s-1" u = units2pint("m^3 s-1") assert str(u) == "meter ** 3 / second" assert pint2cfunits(u) == "m^3 s-1"
def test_pint2cfunits(self): u = units("mm/d") assert pint2cfunits(u.units) == "mm d-1" u = units("percent") assert pint2cfunits(u.units) == "%" u = units("pct") assert pint2cfunits(u.units) == "%"
def test_pint2cfunits(self): u = units('mm/d') assert pint2cfunits(u.units) == 'mm d-1'
def test_pint2cfunits(self): u = units("mm/d") assert pint2cfunits(u.units) == "mm d-1"