See rfc-5545 3.3.10 - This checks for the deprecation warning, and will eventually check for an error.
(self)
| 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, |