コード例 #1
0
ファイル: test_pocount.py プロジェクト: flyeven/translate
 def test_totalsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['totalsourcewords'] == 6
コード例 #2
0
ファイル: test_pocount.py プロジェクト: flyeven/translate
 def test_fuzzy(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['fuzzy'] == 1
コード例 #3
0
ファイル: test_pocount.py プロジェクト: flyeven/translate
 def test_untranslatedsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['untranslatedsourcewords'] == 2
コード例 #4
0
ファイル: test_pocount.py プロジェクト: KINFOO/translate
 def test_fuzzysourcewords(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['fuzzysourcewords'] == 2
コード例 #5
0
ファイル: test_pocount.py プロジェクト: flyeven/translate
 def test_translated(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['translated'] == 1
コード例 #6
0
ファイル: test_pocount.py プロジェクト: KINFOO/translate
 def test_untranslated(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['untranslated'] == 1
コード例 #7
0
ファイル: test_pocount.py プロジェクト: KINFOO/translate
 def test_total(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['total'] == 3
コード例 #8
0
ファイル: test_pocount.py プロジェクト: ANKIT-KS/fjord
 def test_totalsourcewords(self):
     pofile = StringIO.StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats["totalsourcewords"] == 6
コード例 #9
0
ファイル: test_pocount.py プロジェクト: AshishNamdev/verbatim
 def test_translatedsourcewords(self):
     pofile = StringIO.StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['translatedsourcewords'] == 2
コード例 #10
0
ファイル: test_pocount.py プロジェクト: ANKIT-KS/fjord
 def test_fuzzy(self):
     pofile = StringIO.StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats["fuzzy"] == 1
コード例 #11
0
ファイル: test_pocount.py プロジェクト: midhz/translate
 def test_total(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['total'] == 3
コード例 #12
0
ファイル: test_pocount.py プロジェクト: midhz/translate
 def test_untranslated(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['untranslated'] == 1
コード例 #13
0
ファイル: test_pocount.py プロジェクト: midhz/translate
 def test_fuzzy(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['fuzzy'] == 1
コード例 #14
0
 def test_translatedsourcewords(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['translatedsourcewords'] == 2