Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/StevenBlack/hosts
/ assert_called_once
Method
assert_called_once
testUpdateHostsFile.py:72–73 ·
view source on GitHub ↗
(self, mock_method)
Source
from the content-addressed store, hash-verified
70
return
os.sep
71
72
def
assert_called_once(self, mock_method):
73
self.assertEqual(mock_method.call_count, 1)
74
75
76
class
BaseStdout(Base):
Callers
15
testNoSkipPromptNoDisplay
Method · 0.80
testNoSkipPromptDisplay
Method · 0.80
testFlushCache
Method · 0.80
testNoFlushCachePromptNoFlush
Method · 0.80
testNoFlushCachePromptFlush
Method · 0.80
testReplaceNoSkipStaticHosts
Method · 0.80
testPromptNoMove
Method · 0.80
testPromptMove
Method · 0.80
test_gatherexclusions
Method · 0.80
test_mixture_gatherexclusions
Method · 0.80
test_update_only_extensions
Method · 0.80
test_update_both_pathways
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected