MCPcopy
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
76class BaseStdout(Base):

Calls

no outgoing calls

Tested by

no test coverage detected