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

Method testBadUntilCountRRule

tests/test_rrule.py:2369–2376  ·  view source on GitHub ↗

See rfc-5545 3.3.10 - This checks for the deprecation warning, and will eventually check for an error.

(self)

Source from the content-addressed store, hash-verified

2367 self.assertRaises(ValueError, make_bad_hour_rrule)
2368
2369 def testBadUntilCountRRule(self):
2370 """
2371 See rfc-5545 3.3.10 - This checks for the deprecation warning, and will
2372 eventually check for an error.
2373 """
2374 with pytest.warns(DeprecationWarning):
2375 rrule(DAILY, dtstart=datetime(1997, 9, 2, 9, 0),
2376 count=3, until=datetime(1997, 9, 4, 9, 0))
2377
2378 def testUntilNotMatching(self):
2379 self.assertEqual(list(rrule(DAILY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected