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

Method testReplaceIfNotSet

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

Source from the content-addressed store, hash-verified

4606 [datetime(1997, 1, 6)])
4607
4608 def testReplaceIfNotSet(self):
4609 rr = rrule(YEARLY,
4610 count=1,
4611 dtstart=datetime(1997, 1, 1))
4612 newrr = rr.replace(bymonthday=6)
4613 self.assertEqual(list(rr), [datetime(1997, 1, 1)])
4614 self.assertEqual(list(newrr),
4615 [datetime(1997, 1, 6)])
4616
4617
4618@pytest.mark.rrule

Callers

nothing calls this directly

Calls 2

rruleClass · 0.90
replaceMethod · 0.45

Tested by

no test coverage detected