예제 #1
0
    def test_with_undefined_domain(self):
        _.domain('jp')

        self.assertEqual(_('potato'), 'potato')
        self.assertEqual(_('rice'), 'rice')
        self.assertEqual(_('milkfish'), 'milkfish')
        self.assertEqual(_('banana'), 'banana')
예제 #2
0
    def test_with_undefined_domain(self):
        _.domain('jp')

        self.assertEqual(_('potato'), 'potato')
        self.assertEqual(_('rice'), 'rice')
        self.assertEqual(_('milkfish'), 'milkfish')
        self.assertEqual(_('banana'), 'banana')
예제 #3
0
    def test_with_domain(self):
        _.domain('idn')

        self.assertEqual(_('potato'), 'kentang')
        self.assertEqual(_('rice'), 'padi')
        self.assertEqual(_('milkfish'), 'bandeng')
        self.assertEqual(_('banana'), 'pisang')
예제 #4
0
    def test_with_domain(self):
        _.domain('idn')

        self.assertEqual(_('potato'), 'kentang')
        self.assertEqual(_('rice'), 'padi')
        self.assertEqual(_('milkfish'), 'bandeng')
        self.assertEqual(_('banana'), 'pisang')