[damned-lies] Fix statistics tests



commit 2bfaf872e8abb7bc742ceabd1d1bf7424f88727e
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Aug 27 15:58:08 2011 +0200

    Fix statistics tests

 stats/tests/__init__.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/stats/tests/__init__.py b/stats/tests/__init__.py
index 82cdfe7..0aafa22 100644
--- a/stats/tests/__init__.py
+++ b/stats/tests/__init__.py
@@ -267,12 +267,12 @@ class StatisticsTests(TestCase):
     def testTotalStatsForLang(self):
         rel  = Release.objects.get(name="gnome-2-30")
         total_for_lang = rel.total_for_lang(Language.objects.get(locale='fr'))
-        self.assertEqual(total_for_lang['uitotal'], total_for_lang['uitotal_part'])
-        self.assertTrue(total_for_lang['uiuntrans'] == total_for_lang['uiuntrans_part'] == 0)
+        self.assertEqual(total_for_lang['ui']['total'], total_for_lang['ui_part']['total'])
+        self.assertTrue(total_for_lang['ui']['untranslated'] == total_for_lang['ui_part']['untranslated'] == 0)
         total_for_lang = rel.total_for_lang(Language.objects.get(locale='bem'))
-        self.assertEqual(total_for_lang['uitotal']-8, total_for_lang['uitotal_part'])
-        self.assertEqual(total_for_lang['uiuntrans'], 183)
-        self.assertEqual(total_for_lang['uiuntrans_part'], 175)
+        self.assertEqual(total_for_lang['ui']['total']-8, total_for_lang['ui_part']['total'])
+        self.assertEqual(total_for_lang['ui']['untranslated'], 183)
+        self.assertEqual(total_for_lang['ui_part']['untranslated'], 175)
 
     def testStatsLinks(self):
         pot_stats = Statistics.objects.get(



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]