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

Method test_validate_nb_names

numpy/lib/tests/test__iotools.py:123–129  ·  view source on GitHub ↗

Test validate nb names

(self)

Source from the content-addressed store, hash-verified

121 assert_equal(validator(namelist), ['f1', 'f0', 'f2'])
122
123 def test_validate_nb_names(self):
124 "Test validate nb names"
125 namelist = ('a', 'b', 'c')
126 validator = NameValidator()
127 assert_equal(validator(namelist, nbfields=1), ('a',))
128 assert_equal(validator(namelist, nbfields=5, defaultfmt="g%i"),
129 ['a', 'b', 'c', 'g0', 'g1'])
130
131 def test_validate_wo_names(self):
132 "Test validate no names"

Callers

nothing calls this directly

Calls 2

NameValidatorClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected