コード例 #1
0
ファイル: test_cftimeindex.py プロジェクト: mraspaud/xarray
def test_parse_iso8601(string, expected):
    result = parse_iso8601(string)
    assert result == expected

    with pytest.raises(ValueError):
        parse_iso8601(string + '3')
        parse_iso8601(string + '.3')
コード例 #2
0
ファイル: test_cftimeindex.py プロジェクト: crusaderky/xarray
def test_parse_iso8601(string, expected):
    result = parse_iso8601(string)
    assert result == expected

    with pytest.raises(ValueError):
        parse_iso8601(string + '3')
        parse_iso8601(string + '.3')