summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorniemeyer <>2003-10-09 16:49:35 +0000
committerniemeyer <>2003-10-09 16:49:35 +0000
commit8d46849670150845b4545ef7ab6043f08902aed0 (patch)
treee763444d2e8d03c53770249cbd1d2608de89b77c /test.py
parent7484e70e19476af7c309644f91532a542dfa0189 (diff)
downloaddateutil-8d46849670150845b4545ef7ab6043f08902aed0.tar.gz
- Made 'until' accept date instances as well.
- Testcases for new code.
Diffstat (limited to 'test.py')
-rw-r--r--test.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.py b/test.py
index 31a452a..74b9820 100644
--- a/test.py
+++ b/test.py
@@ -2240,6 +2240,15 @@ class RRuleTest(unittest.TestCase):
until=parse("19970901T090000"))),
[])
+ def testUntilWithDate(self):
+ self.assertEqual(list(rrule(FREQ_DAILY,
+ count=3,
+ dtstart=parse("19970902T090000"),
+ until=date(1997, 9, 5))),
+ [datetime(1997, 9, 2, 9, 0),
+ datetime(1997, 9, 3, 9, 0),
+ datetime(1997, 9, 4, 9, 0)])
+
def testWkStIntervalMO(self):
self.assertEqual(list(rrule(FREQ_WEEKLY,
count=3,