예제 #1
0
 def test_format_fnl(self):
     assert pud.format_date("1999-01-01", "fnl") == "fnl_19990101_00_00"
예제 #2
0
 def test_format_iso(self):
     assert pud.format_date("1999-01-01", "ISO") == "1999-01-01T00:00:00Z"
예제 #3
0
 def test_format_cfsr(self):
     assert pud.format_date("1999-01-01", "cfsr") == "1999-01-01 00:00"
예제 #4
0
 def test_format_long(self):
     assert pud.format_date("1999-01-01", "long") == "1999-01-01_00:00:00"
예제 #5
0
 def test_format_wrf(self):
     assert pud.format_date("1999-01-01", "wrf") == "1999-01-01_00:00:00"
예제 #6
0
 def test_format_short(self):
     assert pud.format_date("1999-01-01", "short") == "1999010100"
예제 #7
0
 def test_format_short(self):
     assert pud.format_date("1999-01-01", "short") == "1999010100"
예제 #8
0
 def test_format_fnl_dir(self):
     assert pud.format_date(
         "1999-01-01", "fnl_dir") == "grib2/1999/1999.01/fnl_19990101_00_00"
예제 #9
0
 def test_format_gfs(self):
     assert pud.format_date("1999-01-01", "GFS") == "GFS:1999-01-01_00"
     assert pud.format_date("19990101 12:13:14",
                            "GFS") == "GFS:1999-01-01_12"
예제 #10
0
 def test_format_cfsr(self):
     assert pud.format_date("1999-01-01", "cfsr") == "1999-01-01 00:00"
예제 #11
0
 def test_format_fnl(self):
     assert pud.format_date("1999-01-01", "fnl") == "fnl_19990101_00_00"
예제 #12
0
 def test_format_iso(self):
     assert pud.format_date("1999-01-01", "ISO") == "1999-01-01T00:00:00Z"
예제 #13
0
 def test_format_wrf(self):
     assert pud.format_date("1999-01-01", "wrf") == "1999-01-01_00:00:00"
예제 #14
0
 def test_format_long(self):
     assert pud.format_date("1999-01-01", "long") == "1999-01-01_00:00:00"
예제 #15
0
 def test_format_fnl_dir(self):
     assert pud.format_date("1999-01-01", "fnl_dir") == "grib2/1999/1999.01/fnl_19990101_00_00"
예제 #16
0
 def test_format_default(self):
     assert pud.format_date("201501") == "2015-01-01_00:00:00"
예제 #17
0
 def test_format_gfs(self):
     assert pud.format_date("1999-01-01", "GFS") == "GFS:1999-01-01_00"
     assert pud.format_date("19990101 12:13:14", "GFS") == "GFS:1999-01-01_12"
예제 #18
0
 def test_format_default(self):
     assert pud.format_date("201501") == "2015-01-01_00:00:00"