test.support.temp_umask()
  • References/Python/Python/Development Tools

test.support.temp_umask(umask) A context manager that temporarily sets the process umask.

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.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.TestCase.maxDiff
  • References/Python/Python/Development Tools

maxDiff This attribute controls the maximum length of diffs output by assert methods that report diffs on failure. It defaults

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

doctest.register_optionflag(name) Create a new option flag with a given name, and return the new flag’s integer value.

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

class typing.Union Union type; Union[X, Y] means either X or Y. To define a union

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

class unittest.TestSuite(tests=()) This class represents an aggregation of individual tests cases and test suites. The class

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
unittest.TestCase.run()
  • References/Python/Python/Development Tools

run(result=None) Run the test, collecting the result into the TestResult object passed as result. If result

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