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

Method test_big_endian_file

Lib/test/test_gettext.py:317–321  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

315 self.assertEqual(exception.filename, MOFILE_CORRUPT)
316
317 def test_big_endian_file(self):
318 with open(MOFILE_BIG_ENDIAN, 'rb') as fp:
319 t = gettext.GNUTranslations(fp)
320
321 self.assertEqual(t.gettext('foo'), 'bar')
322
323 def test_some_translations(self):
324 eq = self.assertEqual

Callers

nothing calls this directly

Calls 3

gettextMethod · 0.95
openFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected