Exemplo n.º 1
0
 def test_totalsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["totalsourcewords"] == 6
Exemplo n.º 2
0
 def test_untranslatedsourcewords(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["untranslatedsourcewords"] == 2
Exemplo n.º 3
0
 def test_fuzzy(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["fuzzy"] == 1
Exemplo n.º 4
0
 def test_total(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["total"] == 3
Exemplo n.º 5
0
 def test_translated(self):
     pofile = BytesIO(self.inputdata)
     stats = pocount.calcstats(pofile)
     assert stats["translated"] == 1