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

Method test_remove_partial

Lib/test/test_os.py:2097–2106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2095 self.assertFalse(os.path.exists(os_helper.TESTFN))
2096
2097 def test_remove_partial(self):
2098 dira = os.path.join(os_helper.TESTFN, 'dira')
2099 os.mkdir(dira)
2100 dirb = os.path.join(dira, 'dirb')
2101 os.mkdir(dirb)
2102 create_file(os.path.join(dira, 'file.txt'))
2103 os.removedirs(dirb)
2104 self.assertFalse(os.path.exists(dirb))
2105 self.assertTrue(os.path.exists(dira))
2106 self.assertTrue(os.path.exists(os_helper.TESTFN))
2107
2108 def test_remove_nothing(self):
2109 dira = os.path.join(os_helper.TESTFN, 'dira')

Callers

nothing calls this directly

Calls 6

assertFalseMethod · 0.80
assertTrueMethod · 0.80
create_fileFunction · 0.70
joinMethod · 0.45
mkdirMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected