(self)
| 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() |
nothing calls this directly
no test coverage detected