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")
 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."
         )
 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")
 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.")