You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
718 B

# '''
# Created on Jan 25, 2014
#
# @author: Chris
# '''
#
# import unittest
#
# import i18n
#
#
# class Test(unittest.TestCase):
#
# def test_i18n_loads_module_by_name(self):
# self.assertTrue(i18n._DICTIONARY is None)
#
# i18n.load('english')
# self.assertTrue(i18n._DICTIONARY is not None)
# self.assertEqual('Cancel', i18n._('cancel'))
#
# i18n.load('french')
# self.assertEqual('Annuler', i18n._('cancel'))
#
#
# def test_i18n_throws_exception_on_no_lang_file_found(self):
# self.assertRaises(IOError, i18n.load, 'chionenglish')
#
#
#
#
#
# if __name__ == "__main__":
# pass
# #import sys;sys.argv = ['', 'Test.testName']
# unittest.main()