comparison babel/tests/dates.py @ 553:2592619ba62e

small test refactoring/cleanup
author fschwarz
date Sun, 20 Mar 2011 16:29:58 +0000
parents e93f68837913
children
comparison
equal deleted inserted replaced
552:19965213e0ed 553:2592619ba62e
61 def test_week_of_year_last(self): 61 def test_week_of_year_last(self):
62 d = date(2005, 12, 26) 62 d = date(2005, 12, 26)
63 fmt = dates.DateTimeFormat(d, locale='de_DE') 63 fmt = dates.DateTimeFormat(d, locale='de_DE')
64 self.assertEqual('52', fmt['w']) 64 self.assertEqual('52', fmt['w'])
65 fmt = dates.DateTimeFormat(d, locale='en_US') 65 fmt = dates.DateTimeFormat(d, locale='en_US')
66 self.assertEqual('52', fmt['ww']) 66 self.assertEqual('52', fmt['w'])
67 67
68 def test_week_of_month_first(self): 68 def test_week_of_month_first(self):
69 d = date(2006, 1, 8) 69 d = date(2006, 1, 8)
70 fmt = dates.DateTimeFormat(d, locale='de_DE') 70 fmt = dates.DateTimeFormat(d, locale='de_DE')
71 self.assertEqual('1', fmt['W']) 71 self.assertEqual('1', fmt['W'])
Copyright (C) 2012-2017 Edgewall Software