예제 #1
0
 def test_locale_context(self):
     self.assertTrue(rows.fields.SHOULD_NOT_USE_LOCALE)
     if platform.system() == 'Windows':
         name = str('ptb_bra')
     else:
         name = 'pt_BR.UTF-8'
     with locale_context(name):
         self.assertFalse(rows.fields.SHOULD_NOT_USE_LOCALE)
     self.assertTrue(rows.fields.SHOULD_NOT_USE_LOCALE)
예제 #2
0
 def test_locale_context(self):
     self.assertTrue(rows.fields.SHOULD_NOT_USE_LOCALE)
     with locale_context('pt_BR.UTF-8'):
         self.assertFalse(rows.fields.SHOULD_NOT_USE_LOCALE)
     self.assertTrue(rows.fields.SHOULD_NOT_USE_LOCALE)