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

Method test_excludelist

numpy/lib/tests/test__iotools.py:100–105  ·  view source on GitHub ↗

Test excludelist

(self)

Source from the content-addressed store, hash-verified

98 assert_raises(ValueError, NameValidator, case_sensitive='foobar')
99
100 def test_excludelist(self):
101 "Test excludelist"
102 names = ['dates', 'data', 'Other Data', 'mask']
103 validator = NameValidator(excludelist=['dates', 'data', 'mask'])
104 test = validator.validate(names)
105 assert_equal(test, ['dates_', 'data_', 'Other_Data', 'mask_'])
106
107 def test_missing_names(self):
108 "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