MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_glob_directory_names

Method test_glob_directory_names

Lib/test/test_glob.py:163–170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 eq(self.glob('a', 'bcd', '*g'), [self.norm('a', 'bcd', 'efg')])
162
163 def test_glob_directory_names(self):
164 eq = self.assertSequencesEqual_noorder
165 eq(self.glob('*', 'D'), [self.norm('a', 'D')])
166 eq(self.glob('*', '*a'), [])
167 eq(self.glob('a', '*', '*', '*a'),
168 [self.norm('a', 'bcd', 'efg', 'ha')])
169 eq(self.glob('?a?', '*F'), [self.norm('aaa', 'zzzF'),
170 self.norm('aab', 'F')])
171
172 def test_glob_directory_with_trailing_slash(self):
173 seps = (os.sep, os.altsep) if os.altsep else (os.sep,)

Callers

nothing calls this directly

Calls 3

globMethod · 0.95
normMethod · 0.95
eqFunction · 0.50

Tested by

no test coverage detected