]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
remove duplicated test
authorAlex Morega <alex@grep.ro>
Fri, 5 Jul 2013 08:56:55 +0000 (10:56 +0200)
committerAlex Morega <alex@grep.ro>
Fri, 5 Jul 2013 09:00:36 +0000 (11:00 +0200)
how did this ever pass? two tests with same setup and different
assertion?!

babel/tests/dates.py

index 8ebecb77b81b493cdc0509466d1b1d922a5fbd88..120ac5151491b4664efe4777ef301405775e4690 100644 (file)
@@ -188,18 +188,12 @@ class DateTimeFormatTestCase(unittest.TestCase):
         fmt = dates.DateTimeFormat(t, locale='de_DE')
         self.assertEqual('GMT+01:00', fmt['ZZZZ'])
 
-    def test_timezone_no_uncommon(self):
+    def test_timezone_name(self):
         tz = timezone('Europe/Paris')
         dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz)
         fmt = dates.DateTimeFormat(dt, locale='fr_CA')
         self.assertEqual('France', fmt['v'])
 
-    def test_timezone_with_uncommon(self):
-        tz = timezone('Europe/Paris')
-        dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz)
-        fmt = dates.DateTimeFormat(dt, locale='fr_CA')
-        self.assertEqual('HEC', fmt['V'])
-
     def test_timezone_location_format(self):
         tz = timezone('Europe/Paris')
         dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz)