Ejemplo n.º 1
0
 def test_admin(self):
     with open(os.path.join(TEST_PATH, "temp_files", "source"), "w") as f:
         po_file_untranslated_to_text(
             f,
             os.path.join(TEST_PATH, "test_files", "docs",
                          "administration.po"))
     with open(os.path.join(TEST_PATH, "temp_files", "source")) as f:
         self.assertEqual(f.read().strip(), "Administration")
Ejemplo n.º 2
0
 def test_aggregation(self):
     with open(os.path.join(TEST_PATH, "temp_files", "source"), "w") as f:
         po_file_untranslated_to_text(
             f,
             os.path.join(TEST_PATH, "test_files", "docs",
                          "aggregation.po"))
     with open(os.path.join(TEST_PATH, "temp_files", "source")) as f:
         self.assertEqual(
             f.read().strip(),
             "Aggregation\nA high-level introduction to aggregation.\nIntroduces the use and operation of the data aggregation modalities available in MongoDB."
         )
Ejemplo n.º 3
0
 def test_admin(self):
     with open(os.path.join(TEST_PATH, "temp_files", "source"),"w") as f:
         po_file_untranslated_to_text(f, os.path.join(TEST_PATH, "test_files", "docs", "administration.po"))
     with open(os.path.join(TEST_PATH, "temp_files", "source")) as f:
         self.assertEqual(f.read().strip(), "Administration")
Ejemplo n.º 4
0
 def test_aggregation(self):
     with open(os.path.join(TEST_PATH, "temp_files", "source"),"w") as f:
         po_file_untranslated_to_text(f, os.path.join(TEST_PATH, "test_files", "docs", "aggregation.po"))
     with open(os.path.join(TEST_PATH, "temp_files", "source")) as f:
         self.assertEqual(f.read().strip(), "Aggregation\nA high-level introduction to aggregation.\nIntroduces the use and operation of the data aggregation modalities available in MongoDB.")