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

Method test_glob_one_directory

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

Source from the content-addressed store, hash-verified

139 self.assertEqual(glob.glob(b'', dir_fd=self.dir_fd), [])
140
141 def test_glob_one_directory(self):
142 eq = self.assertSequencesEqual_noorder
143 eq(self.glob('a*'), map(self.norm, ['a', 'aab', 'aaa']))
144 eq(self.glob('*a'), map(self.norm, ['a', 'aaa']))
145 eq(self.glob('.*'), map(self.norm, ['.aa', '.bb']))
146 eq(self.glob('?aa'), map(self.norm, ['aaa']))
147 eq(self.glob('aa?'), map(self.norm, ['aaa', 'aab']))
148 eq(self.glob('aa[ab]'), map(self.norm, ['aaa', 'aab']))
149 eq(self.glob('*q'), [])
150
151 def test_glob_nested_directory(self):
152 eq = self.assertSequencesEqual_noorder

Callers

nothing calls this directly

Calls 2

globMethod · 0.95
eqFunction · 0.85

Tested by

no test coverage detected