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

Method test_glob_one_directory

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

globMethod · 0.95
eqFunction · 0.50

Tested by

no test coverage detected