def test_with_undefined_domain(self): _.domain('jp') self.assertEqual(_('potato'), 'potato') self.assertEqual(_('rice'), 'rice') self.assertEqual(_('milkfish'), 'milkfish') self.assertEqual(_('banana'), 'banana')
def test_with_domain(self): _.domain('idn') self.assertEqual(_('potato'), 'kentang') self.assertEqual(_('rice'), 'padi') self.assertEqual(_('milkfish'), 'bandeng') self.assertEqual(_('banana'), 'pisang')