MCPcopy Index your code
hub / github.com/python/cpython / test_resultclass

Method test_resultclass

Lib/test/test_unittest/test_runner.py:1353–1364  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1351 self.assertEqual(obj.stream.getvalue(), stream.getvalue())
1352
1353 def test_resultclass(self):
1354 def MockResultClass(*args):
1355 return args
1356 STREAM = object()
1357 DESCRIPTIONS = object()
1358 VERBOSITY = object()
1359 runner = unittest.TextTestRunner(STREAM, DESCRIPTIONS, VERBOSITY,
1360 resultclass=MockResultClass)
1361 self.assertEqual(runner.resultclass, MockResultClass)
1362
1363 expectedresult = (runner.stream, DESCRIPTIONS, VERBOSITY)
1364 self.assertEqual(runner._makeResult(), expectedresult)
1365
1366 @support.force_not_colorized
1367 @support.requires_subprocess()

Callers

nothing calls this directly

Calls 2

_makeResultMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected