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
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
test.support.import_module()
  • References/Python/Python/Development Tools

test.support.import_module(name, deprecated=False) This function imports and returns the named module. Unlike a normal import

2025-01-10 15:47:30
doctest.debug()
  • References/Python/Python/Development Tools

doctest.debug(module, name, pm=False) Debug the doctests for an object. The module

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

patch.dict(in_dict, values=(), clear=False, **kwargs) Patch a dictionary, or dictionary like object, and restore the dictionary

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

filename The name of the file that this DocTest was extracted from; or None if the filename is unknown

2025-01-10 15:47:30
doctest.DocTestParser.get_doctest()
  • References/Python/Python/Development Tools

get_doctest(string, globs, name, filename, lineno) Extract all doctest examples from the given string, and collect them into

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
unittest.mock.Mock.
  • References/Python/Python/Development Tools

_get_child_mock(**kw) Create the child mocks for attributes and return value. By default child mocks will be the same type as

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

class typing.Dict(dict, MutableMapping[KT, VT]) A generic version of

2025-01-10 15:47:30