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

Method exists

Lib/test/test_site.py:807–811  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

805
806class CommandLineTests(unittest.TestCase):
807 def exists(self, path):
808 if path is not None and os.path.isdir(path):
809 return "exists"
810 else:
811 return "doesn't exist"
812
813 def get_excepted_output(self, *args):
814 if len(args) == 0:

Callers 15

get_excepted_outputMethod · 0.95
test_no_argsMethod · 0.95
run_testsFunction · 0.45
test_c_apiMethod · 0.45
test_absolute_pathMethod · 0.45
test_cwdMethod · 0.45
test_relative_pathMethod · 0.45

Calls 1

isdirMethod · 0.45

Tested by

no test coverage detected