Esempio n. 1
0
 def test_totalsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['totalsourcewords'] == 6
Esempio n. 2
0
 def test_fuzzy(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['fuzzy'] == 1
Esempio n. 3
0
 def test_untranslatedsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['untranslatedsourcewords'] == 2
Esempio n. 4
0
 def test_fuzzysourcewords(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['fuzzysourcewords'] == 2
Esempio n. 5
0
 def test_translated(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['translated'] == 1
Esempio n. 6
0
 def test_untranslated(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['untranslated'] == 1
Esempio n. 7
0
 def test_total(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['total'] == 3
Esempio n. 8
0
 def test_totalsourcewords(self):
     pofile = StringIO.StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats["totalsourcewords"] == 6
Esempio n. 9
0
 def test_translatedsourcewords(self):
     pofile = StringIO.StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['translatedsourcewords'] == 2
Esempio n. 10
0
 def test_fuzzy(self):
     pofile = StringIO.StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats["fuzzy"] == 1
Esempio n. 11
0
 def test_total(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['total'] == 3
Esempio n. 12
0
 def test_untranslated(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['untranslated'] == 1
Esempio n. 13
0
 def test_fuzzy(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['fuzzy'] == 1
Esempio n. 14
0
 def test_translatedsourcewords(self):
     pofile = StringIO(self.inputdata)
     stats = pocount.calcstats_old(pofile)
     assert stats['translatedsourcewords'] == 2