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

Method test_is_absolute_posix

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

Source from the content-addressed store, hash-verified

798
799 @needs_posix
800 def test_is_absolute_posix(self):
801 P = self.cls
802 self.assertFalse(P('').is_absolute())
803 self.assertFalse(P('a').is_absolute())
804 self.assertFalse(P('a/b/').is_absolute())
805 self.assertTrue(P('/').is_absolute())
806 self.assertTrue(P('/a').is_absolute())
807 self.assertTrue(P('/a/b/').is_absolute())
808 self.assertTrue(P('//a').is_absolute())
809 self.assertTrue(P('//a/b').is_absolute())
810
811 @needs_windows
812 def test_is_absolute_windows(self):

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
is_absoluteMethod · 0.80
assertTrueMethod · 0.80
PClass · 0.70

Tested by

no test coverage detected