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

Method testStrAppendRRULEToken

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

Source from the content-addressed store, hash-verified

45 self.assertEqual(list(rule), list(rrulestr_rrule))
46
47 def testStrAppendRRULEToken(self):
48 # `_rrulestr_reverse_test` does not check if the "RRULE:" prefix
49 # property is appended properly, so give it a dedicated test
50 self.assertEqual(str(rrule(YEARLY,
51 count=5,
52 dtstart=datetime(1997, 9, 2, 9, 0))),
53 "DTSTART:19970902T090000\n"
54 "RRULE:FREQ=YEARLY;COUNT=5")
55
56 rr_str = (
57 'DTSTART:19970105T083000\nRRULE:FREQ=YEARLY;INTERVAL=2'
58 )
59 self.assertEqual(str(rrulestr(rr_str)), rr_str)
60
61 def testYearly(self):
62 self.assertEqual(list(rrule(YEARLY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected