MCPcopy Create free account
hub / github.com/ipython/ipython / test_get_input_encoding

Function test_get_input_encoding

IPython/core/tests/test_inputsplitter.py:99–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98
99def test_get_input_encoding():
100 encoding = isp.get_input_encoding()
101 nt.assert_true(isinstance(encoding, str))
102 # simple-minded check that at least encoding a simple string works with the
103 # encoding we got.
104 nt.assert_equal(u'test'.encode(encoding), b'test')
105
106
107class NoInputEncodingTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected