• Home
  • Raw
  • Download

Lines Matching refs:program

52         program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
54 self.assertEqual(program.result, result)
56 self.assertEqual(program.verbosity, 2)
83 program = unittest.TestProgram(testRunner=runner, exit=False,
87 self.assertEqual(('unittest.test',), program.testNames)
98 program = unittest.TestProgram(
104 program.testNames)
107 program = unittest.main(exit=False,
111 self.assertTrue(hasattr(program, 'result'))
168 self.program = InitialisableProgram()
169 self.program.createTests = lambda: None
175 program = self.program
178 program.verbosity = 1
179 program.parseArgs([None, opt])
180 self.assertEqual(program.verbosity, 0)
183 program.verbosity = 1
184 program.parseArgs([None, opt])
185 self.assertEqual(program.verbosity, 2)
188 program = self.program
194 setattr(program, attr, None)
195 program.parseArgs([None])
196 self.assertIs(getattr(program, attr), False)
199 setattr(program, attr, false)
200 program.parseArgs([None])
201 self.assertIs(getattr(program, attr), false)
204 setattr(program, attr, true)
205 program.parseArgs([None])
206 self.assertIs(getattr(program, attr), true)
211 setattr(program, attr, None)
212 program.parseArgs([None, opt])
213 self.assertIs(getattr(program, attr), True)
215 setattr(program, attr, False)
218 program.parseArgs([None, opt])
221 setattr(program, attr, True)
224 program.parseArgs([None, opt])
249 program = self.program
251 program.testRunner = FakeRunner
252 program.verbosity = 'verbosity'
253 program.failfast = 'failfast'
254 program.buffer = 'buffer'
255 program.warnings = 'warnings'
257 program.runTests()
265 self.assertIs(program.result, RESULT)
268 program = self.program
270 program.testRunner = FakeRunner()
273 program.runTests()
279 self.assertIs(program.result, RESULT)
282 program = self.program
284 program.testRunner = FakeRunner
285 program.parseArgs([None, '--locals'])
286 self.assertEqual(True, program.tb_locals)
287 program.runTests()
295 program = self.program
300 program.testRunner = FakeRunner
301 program.verbosity = 'verbosity'
302 program.failfast = 'failfast'
303 program.buffer = 'buffer'
304 program.test = 'test'
306 program.runTests()
312 self.assertIs(program.result, RESULT)
326 program = self.program
327 program.catchbreak = True
329 program.testRunner = FakeRunner
331 program.runTests()
346 program = self.program
350 program.createTests = lambda: None
351 program.parseArgs(argv)
356 self.assertEqual(program.testNames, expected)
360 program = self.program
364 program.createTests = lambda: None
365 program.parseArgs(argv)
368 self.assertEqual(program.testNames, expected)
372 program = self.program
376 program.createTests = lambda: None
377 program.parseArgs(argv)
379 self.assertEqual(program.testNames, argv[1:])
383 program = self.program
389 program.createTests = lambda: None
390 program.parseArgs(argv)
393 self.assertEqual(program.testNames, expected)
396 program = self.program
401 program.createTests = lambda: None
402 program.parseArgs(argv)
404 self.assertEqual(program.testNames, argv[1:])
414 program = self.program
417 program.createTests = lambda: None
418 program.parseArgs(argv)
420 self.assertEqual(program.testNamePatterns, ['*foo*', '*bar*', '*pat*'])