Example #1
0
 def test_41(self):
     self.assertDatetime(parse_date('next quarter', date),
                         '2017-01-01 00:00')
Example #2
0
 def test_20(self):
     self.assertDate(parse_date('next may', date), '2017-05-01')
Example #3
0
 def test_25(self):
     self.assertDatetime(parse_date('next hour', date), '2016-10-04 23:00')
Example #4
0
 def test_12(self):
     self.assertDate(parse_date('today + 1 week', date), '2016-10-11')
Example #5
0
 def test_16(self):
     self.assertDate(parse_date('today +1month', date), '2016-11-04')
Example #6
0
 def test_03(self):
     self.assertDate(parse_date('next mon', date), '2016-10-10')
Example #7
0
 def test_08(self):
     self.assertDate(parse_date('today -1day', date), '2016-10-03')
Example #8
0
 def test_05(self):
     self.assertDate(parse_date('last mon + 1day', date), '2016-09-27')
Example #9
0
 def test_07(self):
     self.assertDate(parse_date('today 1day', date), '2016-10-05')
Example #10
0
 def test_03(self):
     self.assertDate(parse_date('next mon', date), '2016-10-10')
Example #11
0
 def test_04(self):
     self.assertDate(parse_date('last mon', date), '2016-09-26')
Example #12
0
 def test_02(self):
     self.assertDate(parse_date('mon', date), '2016-10-03')
Example #13
0
 def test_01(self):
     self.assertDate(parse_date('jan', date), '2016-01-01')
Example #14
0
 def test_42(self):
     self.assertDate(parse_date('today - 1q', date), '2016-07-04')
Example #15
0
 def test_41(self):
     self.assertDatetime(parse_date('next quarter', date), '2017-01-01 00:00')
Example #16
0
 def test_08(self):
     self.assertDate(parse_date('today -1day', date), '2016-10-03')
Example #17
0
 def test_01(self):
     self.assertDate(parse_date('jan', date), '2016-01-01')
Example #18
0
 def test_09(self):
     self.assertDate(parse_date('today 1year', date), '2017-10-04')
Example #19
0
 def test_05(self):
     self.assertDate(parse_date('last mon + 1day', date), '2016-09-27')
Example #20
0
 def test_10(self):
     self.assertDate(parse_date('2016-05', date), '2016-05-01')
Example #21
0
 def test_10(self):
     self.assertDate(parse_date('2016-05', date), '2016-05-01')
Example #22
0
 def test_11(self):
     self.assertDate(parse_date('2016-05-13years', date), '2016-05-13')
Example #23
0
 def test_14(self):
     self.assertDate(parse_date('fri', date), '2016-10-07')
Example #24
0
 def test_12(self):
     self.assertDate(parse_date('today + 1 week', date), '2016-10-11')
Example #25
0
 def test_18(self):
     self.assertDate(parse_date('2016-12-1 +28month', date), '2019-04-01')
Example #26
0
 def test_13(self):
     self.assertDate(parse_date('sun', date), '2016-10-09')
Example #27
0
 def test_22(self):
     self.assertDate(parse_date('next month', date), '2016-11-01')
Example #28
0
 def test_14(self):
     self.assertDate(parse_date('fri', date), '2016-10-07')
Example #29
0
 def test_27(self):
     self.assertDatetime(parse_date('last min', date), '2016-10-04 22:38')
Example #30
0
 def test_15(self):
     self.assertDate(parse_date('2016', date), '2016-01-01')
Example #31
0
 def test_40(self):
     self.assertDatetime(parse_date('last quarter', date), '2016-07-01 00:00')
Example #32
0
 def test_16(self):
     self.assertDate(parse_date('today +1month', date), '2016-11-04')
Example #33
0
 def test_42(self):
     self.assertDate(parse_date('today - 1q', date), '2016-07-04')
Example #34
0
 def test_17(self):
     self.assertDate(parse_date('2016-12-1 +1month', date), '2017-01-01')
Example #35
0
 def test_02(self):
     self.assertDate(parse_date('mon', date), '2016-10-03')
Example #36
0
 def test_18(self):
     self.assertDate(parse_date('2016-12-1 +28month', date), '2019-04-01')
Example #37
0
 def test_04(self):
     self.assertDate(parse_date('last mon', date), '2016-09-26')
Example #38
0
 def test_19(self):
     self.assertDate(parse_date('next week', date), '2016-10-10')
Example #39
0
 def test_07(self):
     self.assertDate(parse_date('today 1day', date), '2016-10-05')
Example #40
0
 def test_20(self):
     self.assertDate(parse_date('next may', date), '2017-05-01')
Example #41
0
 def test_09(self):
     self.assertDate(parse_date('today 1year', date), '2017-10-04')
Example #42
0
 def test_21(self):
     self.assertDate(parse_date('next day', date), '2016-10-05')
Example #43
0
 def test_11(self):
     self.assertDate(parse_date('2016-05-13years', date), '2016-05-13')
Example #44
0
 def test_22(self):
     self.assertDate(parse_date('next month', date), '2016-11-01')
Example #45
0
 def test_13(self):
     self.assertDate(parse_date('sun', date), '2016-10-09')
Example #46
0
 def test_23(self):
     self.assertDate(parse_date('next year', date), '2017-01-01')
Example #47
0
 def test_15(self):
     self.assertDate(parse_date('2016', date), '2016-01-01')
Example #48
0
 def test_25(self):
     self.assertDatetime(parse_date('next hour', date), '2016-10-04 23:00')
Example #49
0
 def test_17(self):
     self.assertDate(parse_date('2016-12-1 +1month', date), '2017-01-01')
Example #50
0
 def test_26(self):
     self.assertDatetime(parse_date('next min', date), '2016-10-04 22:40')
Example #51
0
 def test_19(self):
     self.assertDate(parse_date('next week', date), '2016-10-10')
Example #52
0
 def test_27(self):
     self.assertDatetime(parse_date('last min', date), '2016-10-04 22:38')
Example #53
0
 def test_21(self):
     self.assertDate(parse_date('next day', date), '2016-10-05')
Example #54
0
 def test_28(self):
     self.assertDatetime(parse_date('', date), '2016-10-04 22:39')
Example #55
0
 def test_23(self):
     self.assertDate(parse_date('next year', date), '2017-01-01')
Example #56
0
 def test_29(self):
     self.assertDate(parse_date('last may', date), '2015-05-01')
Example #57
0
 def test_26(self):
     self.assertDatetime(parse_date('next min', date), '2016-10-04 22:40')
Example #58
0
 def test_39(self):
     self.assertDatetime(parse_date('this quarter', date), '2016-10-01 00:00')
Example #59
0
 def test_28(self):
     self.assertDatetime(parse_date('', date), '2016-10-04 22:39')
Example #60
0
 def test_40(self):
     self.assertDatetime(parse_date('last quarter', date),
                         '2016-07-01 00:00')