示例#1
0
def test_nearest_station_toolow():
    station_id = tides.nearest_station(-95, -351.233)
    assert station_id == '-9999'
示例#2
0
def test_nearest_station_toohigh():
    station_id = tides.nearest_station(95, 351.233)
    assert station_id == '-9999'
示例#3
0
def test_nearest_station_latnull():
    station_id = tides.nearest_station(None, 151.233)
    assert station_id == '-9999'
示例#4
0
def test_nearest_station_lonnull():
    station_id = tides.nearest_station(None, None)
    assert station_id == '-9999'
示例#5
0
def test_stationid():
    station_id = tides.nearest_station(-33.85, 151.233)
    assert station_id == 333