MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / assert_is_not

Method assert_is_not

pythonwhat/State.py:213–219  ·  view source on GitHub ↗
(self, klasses, fun, prev_fun)

Source from the content-addressed store, hash-verified

211 )
212
213 def assert_is_not(self, klasses, fun, prev_fun):
214 if self.__class__.__name__ in klasses:
215 with debugger(self):
216 self.report(
217 "`%s()` should not be called on %s."
218 % (fun, " or ".join(["`%s()`" % pf for pf in prev_fun]))
219 )
220
221 def parse_external(self, code):
222 res = (None, None)

Callers 1

has_equal_astFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected