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

Method test_glob_nested_directory

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

Source from the content-addressed store, hash-verified

150 eq(self.glob('*q'), [])
151
152 def test_glob_nested_directory(self):
153 eq = self.assertSequencesEqual_noorder
154 if os.path.normcase("abCD") == "abCD":
155 # case-sensitive filesystem
156 eq(self.glob('a', 'bcd', 'E*'), [self.norm('a', 'bcd', 'EF')])
157 else:
158 # case insensitive filesystem
159 eq(self.glob('a', 'bcd', 'E*'), [self.norm('a', 'bcd', 'EF'),
160 self.norm('a', 'bcd', 'efg')])
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

Callers

nothing calls this directly

Calls 4

globMethod · 0.95
normMethod · 0.95
normcaseMethod · 0.80
eqFunction · 0.50

Tested by

no test coverage detected