import datetime

from django.test import TestCase

from schedule.templatetags.scheduletags import querystring_for_date

class TestTemplateTags(TestCase):
    
    def test_querystring_for_datetime(self):
        date = datetime.datetime(2008,1,1,0,0,0)
        query_string=querystring_for_date(date)
        self.assertEqual("?year=2008&month=1&day=1&hour=0&minute=0&second=0",
            query_string)
@@ -335,16 +335,20 @@
 008&
+amp;
 month=1&
 day=
@@ -347,21 +347,33 @@
 h=1&
+amp;
 day=1&
+amp;
 hour=0&
+amp;
 minu
@@ -377,16 +377,20 @@
 inute=0&
+amp;
 second=0
@@ -417,8 +417,9 @@
 _string)
+%0A

Update unit test to use escaped ampersands in comparision.