7197: failing test demonstrating the bug

This commit is contained in:
Vassilii Khachaturov 2013-11-13 13:52:47 +02:00
parent dc278569c1
commit 626353a0b3

View File

@ -63,7 +63,8 @@ class DateHandlerTest(unittest.TestCase):
def test_simple(self): def test_simple(self):
dates = [] dates = []
calendar = Date.CAL_GREGORIAN for calendar in (Date.CAL_GREGORIAN, Date.CAL_JULIAN):
for newyear in (Date.NEWYEAR_JAN1, Date.NEWYEAR_MAR25, (5,5)):
for quality in (Date.QUAL_NONE, Date.QUAL_ESTIMATED, for quality in (Date.QUAL_NONE, Date.QUAL_ESTIMATED,
Date.QUAL_CALCULATED): Date.QUAL_CALCULATED):
for modifier in (Date.MOD_NONE, Date.MOD_BEFORE, for modifier in (Date.MOD_NONE, Date.MOD_BEFORE,
@ -73,7 +74,9 @@ class DateHandlerTest(unittest.TestCase):
for day in (5, 27): for day in (5, 27):
d = Date() d = Date()
d.set(quality, modifier, calendar, d.set(quality, modifier, calendar,
(day, month, 1789, slash1), "Text comment") (day, month, 1789, slash1),
"Text comment",
newyear)
dates.append(d) dates.append(d)
for test_date in dates: for test_date in dates: