def test_convert_from_c_boiling(): assert hwk2.convert(100, 'c') == approx(212)
def test_convert_from_kelvin(): assert hwk2.convert(0, 'k') == None
def test_convert_from_f_boiling(): assert hwk2.convert(212, 'f') == approx(100)
def test_convert_from_c_freezing(): assert hwk2.convert(0, 'c') == approx(32)
def test_convert_from_f_freezing(): assert hwk2.convert(32, 'f') == approx(0)
def test_convert_from_kilos_one(): assert hwk2.convert(1, 'kg') == approx(2.20462)
def test_convert_from_kilos_zero(): assert hwk2.convert(0, 'kg') == approx(0)
def test_convert_from_pounds_one(): assert hwk2.convert(1, 'lb') == approx(1 / 2.20462)
def test_convert_from_pounds_zero(): assert hwk2.convert(0, 'lb') == approx(0)