MCPcopy Index your code
hub / github.com/bleachbit/bleachbit / assertCondExists

Method assertCondExists

tests/common.py:201–205  ·  view source on GitHub ↗
(self, cond, path, msg='')

Source from the content-addressed store, hash-verified

199 self.assertNotExists(path, msg, os.lstat)
200
201 def assertCondExists(self, cond, path, msg=''):
202 if cond:
203 self.assertExists(path, msg)
204 else:
205 self.assertNotExists(path, msg)
206
207 def assertDirectoryCount(self, path, count, list_directories=True):
208 """Assert that a directory has a specific number of files

Callers 2

test_fakeMethod · 0.80
test_excludekeyMethod · 0.80

Calls 2

assertExistsMethod · 0.95
assertNotExistsMethod · 0.95

Tested by 2

test_fakeMethod · 0.64
test_excludekeyMethod · 0.64