예제 #1
0
파일: test_filters.py 프로젝트: algby/talks
 def test_dateformat_filter_default_format(self):
     "dateformat filter should return %m/%d/%Y format when it is omitted"
     from talks_application.filters import dateformat
     assert_equals(dateformat(self.d), '07/30/2010')
예제 #2
0
파일: test_filters.py 프로젝트: algby/talks
 def test_dateformat_filter(self):
     "dateformat filter should receive a data object and returns a formated string"
     from talks_application.filters import dateformat
     assert_equals(dateformat(self.d, '%d/%m/%Y'), '30/07/2010')