MCPcopy Create free account
hub / github.com/dateutil/dateutil / testLongIntegers

Method testLongIntegers

tests/test_rrule.py:2285–2304  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2283 datetime(2010, 3, 22, 14, 1)])
2284
2285 def testLongIntegers(self):
2286 if PY2: # There are no longs in python3
2287 self.assertEqual(list(rrule(MINUTELY,
2288 count=long(2),
2289 interval=long(2),
2290 bymonth=long(2),
2291 byweekday=long(3),
2292 byhour=long(6),
2293 byminute=long(6),
2294 bysecond=long(6),
2295 dtstart=datetime(1997, 9, 2, 9, 0))),
2296 [datetime(1998, 2, 5, 6, 6, 6),
2297 datetime(1998, 2, 12, 6, 6, 6)])
2298 self.assertEqual(list(rrule(YEARLY,
2299 count=long(2),
2300 bymonthday=long(5),
2301 byweekno=long(2),
2302 dtstart=datetime(1997, 9, 2, 9, 0))),
2303 [datetime(1998, 1, 5, 9, 0),
2304 datetime(2004, 1, 5, 9, 0)])
2305
2306 def testHourlyBadRRule(self):
2307 """

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected