Пример #1
0
def test_kelvin_to_fahrenheit():
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", DeprecationWarning)
        assert_equal(sc.K2F([273.15, 273.15]), [32, 32])
Пример #2
0
def test_kelvin_to_fahrenheit():
    assert_equal(sc.K2F([273.15, 273.15]), [32, 32])
Пример #3
0
def test_kelvin_to_fahrenheit():
    with suppress_warnings() as sup:
        sup.filter(DeprecationWarning, "`K2F` is deprecated!")
        sup.filter(DeprecationWarning, "`K2C` is deprecated!")
        sup.filter(DeprecationWarning, "`C2F` is deprecated!")
        assert_equal(sc.K2F([273.15, 273.15]), [32, 32])