MCPcopy Create free account
hub / github.com/numpy/numpy / test_string_to_object

Method test_string_to_object

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

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

(self)

Source from the content-addressed store, hash-verified

215 StringConverter._mapper = _original_mapper
216
217 def test_string_to_object(self):
218 "Make sure that string-to-object functions are properly recognized"
219 old_mapper = StringConverter._mapper[:] # copy of list
220 conv = StringConverter(_bytes_to_date)
221 assert_equal(conv._mapper, old_mapper)
222 assert_(hasattr(conv, 'default'))
223
224 def test_keep_default(self):
225 "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