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

Method testReplaceIfSet

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

Source from the content-addressed store, hash-verified

4588 dtstart=datetime(1997, 9, 2, 9, 0)))
4589
4590 def testReplaceIfSet(self):
4591 rr = rrule(YEARLY,
4592 count=1,
4593 bymonthday=5,
4594 dtstart=datetime(1997, 1, 1))
4595 newrr = rr.replace(bymonthday=6)
4596 self.assertEqual(list(rr), [datetime(1997, 1, 5)])
4597 self.assertEqual(list(newrr),
4598 [datetime(1997, 1, 6)])
4599
4600 def testReplaceIfNotSet(self):
4601 rr = rrule(YEARLY,

Callers

nothing calls this directly

Calls 2

rruleClass · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected