Lines Matching refs:program

50         program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
52 self.assertEqual(program.result, result)
54 self.assertEqual(program.verbosity, 2)
70 program = unittest.main(exit=False,
74 self.assertTrue(hasattr(program, 'result'))
128 self.program = InitialisableProgram()
129 self.program.createTests = lambda: None
135 program = self.program
137 program.msg = msg
138 program.exit = True
139 program.usageExit = usageExit
142 program.exit = False
143 program.parseArgs([None, opt])
144 self.assertTrue(program.exit)
145 self.assertIsNone(program.msg)
147 program.parseArgs([None, '-$'])
148 self.assertTrue(program.exit)
149 self.assertIsNotNone(program.msg)
152 program = self.program
155 program.verbosity = 1
156 program.parseArgs([None, opt])
157 self.assertEqual(program.verbosity, 0)
160 program.verbosity = 1
161 program.parseArgs([None, opt])
162 self.assertEqual(program.verbosity, 2)
165 program = self.program
174 setattr(program, attr, None)
176 program.parseArgs([None, opt])
177 self.assertTrue(getattr(program, attr))
181 setattr(program, attr, not_none)
183 program.parseArgs([None, opt])
184 self.assertEqual(getattr(program, attr), not_none)
187 program = self.program
189 program.testRunner = FakeRunner
190 program.verbosity = 'verbosity'
191 program.failfast = 'failfast'
192 program.buffer = 'buffer'
194 program.runTests()
200 self.assertIs(program.result, RESULT)
203 program = self.program
205 program.testRunner = FakeRunner()
208 program.runTests()
214 self.assertIs(program.result, RESULT)
217 program = self.program
220 program.testRunner = FakeRunner
221 program.verbosity = 'verbosity'
222 program.failfast = 'failfast'
223 program.buffer = 'buffer'
224 program.test = 'test'
226 program.runTests()
232 self.assertIs(program.result, RESULT)
246 program = self.program
247 program.catchbreak = True
249 program.testRunner = FakeRunner
251 program.runTests()