MCPcopy Index your code
hub / github.com/python/cpython / test_glob_directory_names

Method test_glob_directory_names

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

Source from the content-addressed store, hash-verified

160 eq(self.glob('a', 'bcd', '*g'), [self.norm('a', 'bcd', 'efg')])
161
162 def test_glob_directory_names(self):
163 eq = self.assertSequencesEqual_noorder
164 eq(self.glob('*', 'D'), [self.norm('a', 'D')])
165 eq(self.glob('*', '*a'), [])
166 eq(self.glob('a', '*', '*', '*a'),
167 [self.norm('a', 'bcd', 'efg', 'ha')])
168 eq(self.glob('?a?', '*F'), [self.norm('aaa', 'zzzF'),
169 self.norm('aab', 'F')])
170
171 def test_glob_directory_with_trailing_slash(self):
172 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.85

Tested by

no test coverage detected