MCPcopy Create free account
hub / github.com/ARMmbed/DAPLink / set_expected_failure_msg

Method set_expected_failure_msg

test/tests/test_msd.py:129–133  ·  view source on GitHub ↗

Set the expected failure message as a string

(self, msg, error_type)

Source from the content-addressed store, hash-verified

127 self._start = start
128
129 def set_expected_failure_msg(self, msg, error_type):
130 """Set the expected failure message as a string"""
131 assert msg is None or type(msg) is str
132 self._expected_failure_msg = msg
133 self._expected_failure_type = error_type
134
135 def add_mock_files(self, file_list):
136 """Add a list of tuples containing a file and contents"""

Callers 2

test_mass_storageFunction · 0.95
test_file_typeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected