comparison babel/tests/dates.py @ 551:33153e2550a8 trunk

small test refactoring/cleanup
author fschwarz
date Sun, 20 Mar 2011 16:29:58 +0000
parents ca203b2af83c
children e57abed6542a
comparison
equal deleted inserted replaced
550:e3b628dc55b9 551:33153e2550a8
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