51
51
self.assertNotIn(u'foo', gc)
52
52
self.assertEqual(gc[u'foo'], u'translated')
53
53
trans.ugettext.assert_called_with('foo')
56
56
# second time it should be cached
57
57
self.assertIn(u'foo', gc)
58
58
self.assertEqual(gc[u'foo'], u'translated')
61
61
def test_gettextcaching_missinglanguage(self):
62
62
# let's get a cache for an unknown language