def test_po_output_from_single_file(self):
        for test_file in _TEST_SINGLE_FILES:
            # Get old PO example test output
            expected_po = _slurp_file(_TEST_ROOT, test_file + '.po')

            # Generate new output to check
            output = extract_strings.make_potfile(
                [os.path.join(_EXERCISE_ROOT, test_file + '.html')])

            self.assertEqual(output, expected_po, test_file)
    def test_po_output_from_single_file(self):
        for test_file in _TEST_SINGLE_FILES:
            # Get old PO example test output
            expected_po = _load_test_po_file(test_file)

            # Generate new output to check
            output = extract_strings.make_potfile(
                [os.path.join(_TEST_ROOT, test_file + '.html')], verbose=True)

            self.assertEqual(output, expected_po,
                             (str(output), str(expected_po)))
    def test_po_output_from_single_file(self):
        for test_file in _TEST_SINGLE_FILES:
            # Get old PO example test output
            expected_po = _load_test_po_file(test_file)

            # Generate new output to check
            output = extract_strings.make_potfile(
                [os.path.join(_TEST_ROOT, test_file + '.html')],
                verbose=True)

            self.assertEqual(output, expected_po,
                             (str(output), str(expected_po)))