コード例 #1
0
ファイル: test_pocount.py プロジェクト: slide333333/translate
 def test_totalsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["totalsourcewords"] == 6
コード例 #2
0
ファイル: test_pocount.py プロジェクト: slide333333/translate
 def test_untranslatedsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["untranslatedsourcewords"] == 2
コード例 #3
0
ファイル: test_pocount.py プロジェクト: slide333333/translate
 def test_fuzzy(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["fuzzy"] == 1
コード例 #4
0
ファイル: test_pocount.py プロジェクト: slide333333/translate
 def test_total(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["total"] == 3
コード例 #5
0
ファイル: test_pocount.py プロジェクト: slide333333/translate
 def test_translated(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["translated"] == 1