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

Method test_validate_wo_names

numpy/lib/tests/test__iotools.py:127–132  ·  view source on GitHub ↗

Test validate no names

(self)

Source from the content-addressed store, hash-verified

125 ['a', 'b', 'c', 'g0', 'g1'])
126
127 def test_validate_wo_names(self):
128 "Test validate no names"
129 namelist = None
130 validator = NameValidator()
131 assert_(validator(namelist) is None)
132 assert_equal(validator(namelist, nbfields=3), ['f0', 'f1', 'f2'])
133
134# -----------------------------------------------------------------------------
135

Callers

nothing calls this directly

Calls 3

NameValidatorClass · 0.90
assert_Function · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected