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

Method testReplaceIfSet

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

Source from the content-addressed store, hash-verified

4596 dtstart=datetime(1997, 9, 2, 9, 0)))
4597
4598 def testReplaceIfSet(self):
4599 rr = rrule(YEARLY,
4600 count=1,
4601 bymonthday=5,
4602 dtstart=datetime(1997, 1, 1))
4603 newrr = rr.replace(bymonthday=6)
4604 self.assertEqual(list(rr), [datetime(1997, 1, 5)])
4605 self.assertEqual(list(newrr),
4606 [datetime(1997, 1, 6)])
4607
4608 def testReplaceIfNotSet(self):
4609 rr = rrule(YEARLY,

Callers

nothing calls this directly

Calls 2

rruleClass · 0.90
replaceMethod · 0.45

Tested by

no test coverage detected