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

Method test_validate_wo_names

numpy/lib/tests/test__iotools.py:131–136  ·  view source on GitHub ↗

Test validate no names

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

NameValidatorClass · 0.90
assert_Function · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected