MCPcopy Create free account
hub / github.com/ActiveState/code / use_disk

Function use_disk

recipes/Python/492215_diskdemopy/recipe-492215.py:94–100  ·  view source on GitHub ↗
(disk)

Source from the content-addressed store, hash-verified

92################################################################################
93
94def use_disk(disk):
95 set_fail_rate(disk)
96 context = disk.new_context()
97 print
98 print 'CREATING A SHELL ...'
99 Shell(context)
100 print 'EXITING THE SHELL ...'
101
102def set_fail_rate(disk):
103 while True:

Callers 1

loopFunction · 0.85

Calls 3

set_fail_rateFunction · 0.85
new_contextMethod · 0.80
ShellClass · 0.70

Tested by

no test coverage detected