unittest.FunctionTestCase
  • References/Python/Python/Development Tools

class unittest.FunctionTestCase(testFunc, setUp=None, tearDown=None, description=None) This class implements the portion of

2025-01-10 15:47:30
unittest.mock.NonCallableMagicMock
  • References/Python/Python/Development Tools

class unittest.mock.NonCallableMagicMock(*args, **kw) A non-callable version of MagicMock. The

2025-01-10 15:47:30
unittest.TestCase.assertRegex()
  • References/Python/Python/Development Tools

assertRegex(text, regex, msg=None) assertNotRegex(text, regex, msg=None) Test that a regex search matches

2025-01-10 15:47:30
unittest.mock.patch.object()
  • References/Python/Python/Development Tools

patch.object(target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) patch

2025-01-10 15:47:30
unittest.TestCase.assertSetEqual()
  • References/Python/Python/Development Tools

assertSetEqual(first, second, msg=None) Tests that two sets are equal. If not, an error message is constructed that lists the

2025-01-10 15:47:30
unittest.mock.MagicMock
  • References/Python/Python/Development Tools

class unittest.mock.MagicMock(*args, **kw) MagicMock is a subclass of Mock with default implementations

2025-01-10 15:47:30
unittest.mock.Mock.mock_add_spec()
  • References/Python/Python/Development Tools

mock_add_spec(spec, spec_set=False) Add a spec to a mock. spec can either be an object or a list of strings. Only attributes

2025-01-10 15:47:30
typing.MappingView
  • References/Python/Python/Development Tools

class typing.MappingView(Sized, Iterable[T_co]) A generic version of

2025-01-10 15:47:30
unittest.TestCase.assertIs()
  • References/Python/Python/Development Tools

assertIs(first, second, msg=None) assertIsNot(first, second, msg=None) Test that first and second

2025-01-10 15:47:30
doctest.DocTest.docstring
  • References/Python/Python/Development Tools

docstring The string that the test was extracted from, or ‘None’ if the string is unavailable, or if the test was not extracted

2025-01-10 15:47:30