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

Method test_name

Lib/test/test_pathlib/test_join_windows.py:170–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 self.assertEqual(P('\\\\a\\b\\c\\d').anchor, '\\\\a\\b\\')
169
170 def test_name(self):
171 P = self.cls
172 self.assertEqual(P('c:').name, '')
173 self.assertEqual(P('c:/').name, '')
174 self.assertEqual(P('c:a/b').name, 'b')
175 self.assertEqual(P('c:/a/b').name, 'b')
176 self.assertEqual(P('c:a/b.py').name, 'b.py')
177 self.assertEqual(P('c:/a/b.py').name, 'b.py')
178 self.assertEqual(P('//My.py/Share.php').name, '')
179 self.assertEqual(P('//My.py/Share.php/a/b').name, 'b')
180
181 def test_stem(self):
182 P = self.cls

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected