MCPcopy Index your code
hub / github.com/python/cpython / test_pygettext_output

Method test_pygettext_output

Lib/test/test_tools/test_i18n.py:391–396  ·  view source on GitHub ↗

Test that the pygettext output exactly matches snapshots.

(self)

Source from the content-addressed store, hash-verified

389 self.assertEqual(msgids, [''])
390
391 def test_pygettext_output(self):
392 """Test that the pygettext output exactly matches snapshots."""
393 for input_file, output_file, output in extract_from_snapshots():
394 with self.subTest(input_file=input_file):
395 expected = output_file.read_text(encoding='utf-8')
396 self.assert_POT_equal(expected, output)
397
398 def test_files_list(self):
399 """Make sure the directories are inspected for source files

Callers

nothing calls this directly

Calls 4

assert_POT_equalMethod · 0.95
extract_from_snapshotsFunction · 0.85
subTestMethod · 0.45
read_textMethod · 0.45

Tested by

no test coverage detected