MCPcopy Index your code
hub / github.com/numpy/numpy / test_string_to_object

Method test_string_to_object

numpy/lib/tests/test__iotools.py:222–227  ·  view source on GitHub ↗

Make sure that string-to-object functions are properly recognized

(self)

Source from the content-addressed store, hash-verified

220 StringConverter._mapper = _original_mapper
221
222 def test_string_to_object(self):
223 "Make sure that string-to-object functions are properly recognized"
224 old_mapper = StringConverter._mapper[:] # copy of list
225 conv = StringConverter(_bytes_to_date)
226 assert_equal(conv._mapper, old_mapper)
227 assert_(hasattr(conv, 'default'))
228
229 def test_keep_default(self):
230 "Make sure we don't lose an explicit default"

Callers

nothing calls this directly

Calls 3

StringConverterClass · 0.90
assert_equalFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected