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

Method testBadUntilCountRRule

tests/test_rrule.py:2359–2366  ·  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

2357 self.assertRaises(ValueError, make_bad_hour_rrule)
2358
2359 def testBadUntilCountRRule(self):
2360 """
2361 See rfc-5545 3.3.10 - This checks for the deprecation warning, and will
2362 eventually check for an error.
2363 """
2364 with pytest.warns(DeprecationWarning):
2365 rrule(DAILY, dtstart=datetime(1997, 9, 2, 9, 0),
2366 count=3, until=datetime(1997, 9, 4, 9, 0))
2367
2368 def testUntilNotMatching(self):
2369 self.assertEqual(list(rrule(DAILY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected