Skip to content

Commit

Permalink
Fix json encoder test
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Mar 3, 2015
1 parent 7758cb8 commit 74958c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/tests/templatetags.py
Expand Up @@ -82,7 +82,8 @@ def test_json_encoder(self):
self.assertTrue('"item1": 1' in filtered_dict)
self.assertTrue('"item2": 2' in filtered_dict)
self.assertTrue('"item3": 3' in filtered_dict)
self.assertEqual('"%s"' % now().today().isoformat()[:-3], json_filter(now().today()))
today = now().today()
self.assertEqual('"%s"' % today.isoformat()[:-3], json_filter(today))


class TemplatetagDatabaseTests(TwoPagesFixture, SettingsOverrideTestCase):
Expand Down

0 comments on commit 74958c7

Please sign in to comment.