def test_errors_dj(): with pytest.raises(TypeError): _k.dj()
def test_k_methods(): assert _k.ymd(2000, 1, 1) == 0 assert _k.ymd(1970, 1, 1) == -10957 assert _k.dj(0) == 20000101 assert _k.dj(-10957) == 19700101