예제 #1
0
    def test_sparse(self):
        self.assertEqual(util.parseLocales('''
af

de

'''), ['af', 'de'])
예제 #2
0
    def test_sparse(self):
        self.assertEquals(util.parseLocales('''
af

de

'''), ['af', 'de'])
예제 #3
0
    def test_all(self):
        self.assertEquals(
            util.parseLocales(
                """af
de"""
            ),
            ["af", "de"],
        )
예제 #4
0
    def test_shipped(self):
        self.assertEquals(
            util.parseLocales(
                """af
ja win mac
de"""
            ),
            ["af", "de", "ja"],
        )
예제 #5
0
 def allLocales(self):
     """Return a list of all the locales of this project"""
     return util.parseLocales(open(self.all_path).read())
예제 #6
0
 def allLocales(self):
     """Return a list of all the locales of this project"""
     return util.parseLocales(urlopen(self.all_url).read())
예제 #7
0
    def test_shipped(self):
        self.assertEquals(util.parseLocales('''af
ja win mac
de'''), ['af', 'de', 'ja'])
예제 #8
0
 def test_empty(self):
     self.assertEquals(util.parseLocales(''), [])
예제 #9
0
 def test_empty(self):
     self.assertEquals(util.parseLocales(""), [])
예제 #10
0
    def test_shipped(self):
        self.assertEqual(util.parseLocales('''af
ja win mac
de'''), ['af', 'de', 'ja'])
예제 #11
0
파일: ini.py 프로젝트: Pike/compare-locales
 def allLocales(self):
     """Return a list of all the locales of this project"""
     with open(self.all_path) as f:
         return util.parseLocales(f.read())