Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed problem with SelectDateWidget test caused by 2006/2007 year rol…

…lover. Thanks, Robert Myers.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eecd90f5c236eae02adc6a79c897035322b78746 1 parent 8701cde
@freakboy3742 freakboy3742 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/regressiontests/forms/tests.py
View
6 tests/regressiontests/forms/tests.py
@@ -2482,7 +2482,7 @@
# SelectDateWidget ############################################################
>>> from django.newforms.extras import SelectDateWidget
->>> w = SelectDateWidget()
+>>> w = SelectDateWidget(years=('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016'))
>>> print w.render('mydate', '')
<select name="mydate_month">
<option value="1">January</option>
@@ -2532,7 +2532,6 @@
<option value="31">31</option>
</select>
<select name="mydate_year">
-<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
@@ -2542,6 +2541,7 @@
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
+<option value="2016">2016</option>
</select>
>>> w.render('mydate', None) == w.render('mydate', '')
True
@@ -2594,7 +2594,6 @@
<option value="31">31</option>
</select>
<select name="mydate_year">
-<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
@@ -2604,6 +2603,7 @@
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
+<option value="2016">2016</option>
</select>
"""

0 comments on commit eecd90f

Please sign in to comment.
Something went wrong with that request. Please try again.