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

Method test_excludelist

numpy/lib/tests/test__iotools.py:104–109  ·  view source on GitHub ↗

Test excludelist

(self)

Source from the content-addressed store, hash-verified

102 assert_raises(ValueError, NameValidator, case_sensitive='foobar')
103
104 def test_excludelist(self):
105 "Test excludelist"
106 names = ['dates', 'data', 'Other Data', 'mask']
107 validator = NameValidator(excludelist=['dates', 'data', 'mask'])
108 test = validator.validate(names)
109 assert_equal(test, ['dates_', 'data_', 'Other_Data', 'mask_'])
110
111 def test_missing_names(self):
112 "Test validate missing names"

Callers

nothing calls this directly

Calls 3

validateMethod · 0.95
NameValidatorClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected