Beispiel #1
0
 def test_second(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 0, 10), _parse_duration('PT10S'))
Beispiel #2
0
 def test_hour(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 0, 3600), _parse_duration('PT1H'))
Beispiel #3
0
 def test_minute(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 0, 600), _parse_duration('PT10M'))
Beispiel #4
0
 def test_year(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((2, 0, 0, 0), _parse_duration('P2Y'))
Beispiel #5
0
 def test_day(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 2, 0), _parse_duration('P2D'))
 def test_minute(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 0, 600), _parse_duration("PT10M"))
 def test_second(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 0, 10), _parse_duration("PT10S"))
 def test_hour(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 0, 3600), _parse_duration("PT1H"))
 def test_day(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 0, 2, 0), _parse_duration("P2D"))
Beispiel #10
0
 def test_year(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((2, 0, 0, 0), _parse_duration("P2Y"))
 def test_month(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 2, 0, 0), _parse_duration("P2M"))
Beispiel #12
0
 def test_month(self):
     from c2cgeoportal.lib.wmstparsing import _parse_duration
     self.assertEqual((0, 2, 0, 0), _parse_duration('P2M'))