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

Method test_option_encoding

Lib/test/test_calendar.py:1159–1164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1157 self.assertEqual(output, conv(result_2004_01_text))
1158
1159 def test_option_encoding(self):
1160 self.assertFailure('-e')
1161 self.assertFailure('--encoding')
1162 for run in self.runners:
1163 output = run('--encoding', 'utf-16-le', '2004')
1164 self.assertEqual(output, result_2004_text.encode('utf-16-le'))
1165
1166 def test_option_locale(self):
1167 self.assertFailure('-L')

Callers

nothing calls this directly

Calls 4

assertFailureMethod · 0.95
runFunction · 0.70
assertEqualMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected