def test_unsplit_float_time_stamp():
    with assert_raises(tsn.TimeStampError):
        name = tsn.unsplit('ice_surface__temperature', '1.2')
def test_unsplit_str_time_stamp():
    name = tsn.unsplit('ice_surface__temperature', '0001')
    assert_equal(name, 'ice_surface__temperature@t=1')
def test_unsplit():
    name = tsn.unsplit('ice_surface__temperature', 1)
    assert_equal(name, 'ice_surface__temperature@t=1')
示例#4
0
def test_unsplit_float_time_stamp():
    with pytest.raises(tsn.TimeStampError):
        tsn.unsplit("ice_surface__temperature", "1.2")
示例#5
0
def test_unsplit_str_time_stamp():
    name = tsn.unsplit("ice_surface__temperature", "0001")
    assert name == "ice_surface__temperature@t=1"
示例#6
0
def test_unsplit():
    name = tsn.unsplit("ice_surface__temperature", 1)
    assert name == "ice_surface__temperature@t=1"