MCPcopy Index your code
hub / github.com/RustPython/RustPython / addTest

Method addTest

Lib/unittest/suite.py:43–51  ·  view source on GitHub ↗
(self, test)

Source from the content-addressed store, hash-verified

41 return cases
42
43 def addTest(self, test):
44 # sanity checks
45 if not callable(test):
46 raise TypeError("{} is not callable".format(repr(test)))
47 if isinstance(test, type) and issubclass(test,
48 (case.TestCase, TestSuite)):
49 raise TypeError("TestCases and TestSuites must be instantiated "
50 "before passing them to addTest()")
51 self._tests.append(test)
52
53 def addTests(self, tests):
54 if isinstance(tests, str):

Callers 15

addTestsMethod · 0.95
DocTestSuiteFunction · 0.80
DocFileSuiteFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80

Calls 6

callableFunction · 0.85
reprFunction · 0.85
isinstanceFunction · 0.85
issubclassFunction · 0.85
formatMethod · 0.45
appendMethod · 0.45

Tested by 15

DocTestSuiteFunction · 0.64
DocFileSuiteFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64