Skip to content

Commit

Permalink
test met date #100
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSaelen committed Feb 1, 2017
1 parent 0b6dc8d commit bead13b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_utils.py
Expand Up @@ -26,6 +26,12 @@ def test_datetime_format_filter_default(self):
fd = datetime_format_filter(d)
self.assertEqual('07-09-2014 20:00', fd)

def test_datetime_format_filter_date(self):
from datetime import date
d = date(2014, 9, 7)
fd = datetime_format_filter(d, format='%d-%m-%Y')
self.assertEqual('07-09-2014', fd)

def test_datetime_format_filter_custom_format(self):
from datetime import datetime
d = datetime(2014, 9, 7, 20, 00)
Expand Down

0 comments on commit bead13b

Please sign in to comment.