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

Method testReplaceIfNotSet

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

Source from the content-addressed store, hash-verified

4598 [datetime(1997, 1, 6)])
4599
4600 def testReplaceIfNotSet(self):
4601 rr = rrule(YEARLY,
4602 count=1,
4603 dtstart=datetime(1997, 1, 1))
4604 newrr = rr.replace(bymonthday=6)
4605 self.assertEqual(list(rr), [datetime(1997, 1, 1)])
4606 self.assertEqual(list(newrr),
4607 [datetime(1997, 1, 6)])
4608
4609
4610@pytest.mark.rrule

Callers

nothing calls this directly

Calls 2

rruleClass · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected