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

Method test_is_junction_false

Lib/test/test_pathlib/test_pathlib.py:2697–2704  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2695 self.assertIs((P / 'linkA\x00').is_file(), False)
2696
2697 def test_is_junction_false(self):
2698 P = self.cls(self.base)
2699 self.assertFalse((P / 'fileA').is_junction())
2700 self.assertFalse((P / 'dirA').is_junction())
2701 self.assertFalse((P / 'non-existing').is_junction())
2702 self.assertFalse((P / 'fileA' / 'bah').is_junction())
2703 self.assertFalse((P / 'fileA\udfff').is_junction())
2704 self.assertFalse((P / 'fileA\x00').is_junction())
2705
2706 def test_is_junction_true(self):
2707 P = self.cls(self.base)

Callers

nothing calls this directly

Calls 3

assertFalseMethod · 0.80
is_junctionMethod · 0.80
clsMethod · 0.45

Tested by

no test coverage detected