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

Method test_anchor

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

Source from the content-addressed store, hash-verified

159 par[2]
160
161 def test_anchor(self):
162 P = self.cls
163 self.assertEqual(P('c:').anchor, 'c:')
164 self.assertEqual(P('c:a/b').anchor, 'c:')
165 self.assertEqual(P('c:\\').anchor, 'c:\\')
166 self.assertEqual(P('c:\\a\\b\\').anchor, 'c:\\')
167 self.assertEqual(P('\\\\a\\b\\').anchor, '\\\\a\\b\\')
168 self.assertEqual(P('\\\\a\\b\\c\\d').anchor, '\\\\a\\b\\')
169
170 def test_name(self):
171 P = self.cls

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected