Example #1
0
File: test_k.py Project: xbsd/pyq
def test_errors_dj():
    with pytest.raises(TypeError):
        _k.dj()
Example #2
0
File: test_k.py Project: xbsd/pyq
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