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

Method test_fromfile

Lib/test/test_regrtest.py:212–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 self.assertFalse(ns.randomize)
211
212 def test_fromfile(self):
213 for opt in '-f', '--fromfile':
214 with self.subTest(opt=opt):
215 ns = self.parse_args([opt, 'foo'])
216 self.assertEqual(ns.fromfile, 'foo')
217 self.checkError([opt], 'expected one argument')
218 self.checkError([opt, 'foo', '-s'], "don't go together")
219
220 def test_exclude(self):
221 for opt in '-x', '--exclude':

Callers

nothing calls this directly

Calls 4

parse_argsMethod · 0.95
checkErrorMethod · 0.95
subTestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected