예제 #1
0
def test_celcius_to_fahrenheit():
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", DeprecationWarning)
        assert_equal(sc.C2F([0, 0]), [32, 32])
예제 #2
0
def test_celcius_to_fahrenheit():
    assert_equal(sc.C2F([0, 0]), [32, 32])
예제 #3
0
def test_celsius_to_fahrenheit():
    with suppress_warnings() as sup:
        sup.filter(DeprecationWarning, "`C2F` is deprecated!")
        assert_equal(sc.C2F([0, 0]), [32, 32])