def test_aggregation(self): fill_po_file( os.path.join(TEST_PATH, "temp_files", "docs", "aggregation.po"), "2\n3\n4", 1) f1 = polib.pofile( os.path.join(TEST_PATH, "temp_files", "docs", "aggregation.po")) f2 = polib.pofile( os.path.join(TEST_PATH, "test_files", "filled_docs", "aggregation.po")) for l1, l2 in zip(f1, f2): self.assertEqual(l1, l2)
def test_administration(self): fill_po_file( os.path.join(TEST_PATH, "temp_files", "docs", "administration.po"), "1", 0) f1 = polib.pofile( os.path.join(TEST_PATH, "temp_files", "docs", "administration.po")) f2 = polib.pofile( os.path.join(TEST_PATH, "test_files", "filled_docs", "administration.po")) for l1, l2 in zip(f1, f2): self.assertEqual(l1, l2)
def test_aggregation(self): fill_po_file(os.path.join(TEST_PATH, "temp_files", "docs", "aggregation.po"),"2\n3\n4", 1) f1 = polib.pofile(os.path.join(TEST_PATH, "temp_files", "docs", "aggregation.po")) f2 = polib.pofile(os.path.join(TEST_PATH, "test_files", "filled_docs", "aggregation.po")) for l1, l2 in zip(f1, f2): self.assertEqual(l1, l2)
def test_administration(self): fill_po_file(os.path.join(TEST_PATH, "temp_files", "docs", "administration.po"),"1", 0) f1 = polib.pofile(os.path.join(TEST_PATH, "temp_files", "docs", "administration.po")) f2 = polib.pofile(os.path.join(TEST_PATH, "test_files", "filled_docs", "administration.po")) for l1, l2 in zip(f1, f2): self.assertEqual(l1, l2)