Did I find the right examples for you? yes no

All Samples(193)  |  Call(50)  |  Derive(130)  |  Import(13)
A command-line program that runs a set of tests; this is primarily
for making test modules conveniently executable.

src/i/r/ironpython3-HEAD/Src/StdLib/Lib/unittest/test/test_program.py   ironpython3(Download)
        self.addCleanup(removeTest)
 
        program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)
        sys.argv = ['faketest']
        runner = FakeRunner()
        program = unittest.TestProgram(testRunner=runner, exit=False,
                                       defaultTest='unittest.test',
                                       testLoader=self.FooBarLoader())
        runner = FakeRunner()
        program = unittest.TestProgram(
            testRunner=runner, exit=False,
            defaultTest=['unittest.test', 'unittest.test2'],
            testLoader=self.FooBarLoader())
class InitialisableProgram(unittest.TestProgram):
    exit = False
    result = None
    verbosity = 1
    defaultTest = None
        class FakeTP(unittest.TestProgram):
            def parseArgs(self, *args, **kw): pass
            def runTests(self, *args, **kw): pass
        warnoptions = sys.warnoptions[:]
        try:

src/c/p/cpython-HEAD/Lib/unittest/test/test_program.py   cpython(Download)
        self.addCleanup(removeTest)
 
        program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)
        sys.argv = ['faketest']
        runner = FakeRunner()
        program = unittest.TestProgram(testRunner=runner, exit=False,
                                       defaultTest='unittest.test',
                                       testLoader=self.FooBarLoader())
        runner = FakeRunner()
        program = unittest.TestProgram(
            testRunner=runner, exit=False,
            defaultTest=['unittest.test', 'unittest.test2'],
            testLoader=self.FooBarLoader())
class InitialisableProgram(unittest.TestProgram):
    exit = False
    result = None
    verbosity = 1
    defaultTest = None
        class FakeTP(unittest.TestProgram):
            def parseArgs(self, *args, **kw): pass
            def runTests(self, *args, **kw): pass
        warnoptions = sys.warnoptions[:]
        try:

src/s/t/static-python-HEAD/Lib/unittest/test/test_program.py   static-python(Download)
        self.addCleanup(removeTest)
 
        program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)
        sys.argv = ['faketest']
        runner = FakeRunner()
        program = unittest.TestProgram(testRunner=runner, exit=False,
                                       defaultTest='unittest.test',
                                       testLoader=self.FooBarLoader())
        runner = FakeRunner()
        program = unittest.TestProgram(
            testRunner=runner, exit=False,
            defaultTest=['unittest.test', 'unittest.test2'],
            testLoader=self.FooBarLoader())
class InitialisableProgram(unittest.TestProgram):
    exit = False
    result = None
    verbosity = 1
    defaultTest = None
        class FakeTP(unittest.TestProgram):
            def parseArgs(self, *args, **kw): pass
            def runTests(self, *args, **kw): pass
        warnoptions = sys.warnoptions[:]
        try:

src/o/h/oh-mainline-HEAD/vendor/packages/mechanize/test/test_unittest.py   oh-mainline(Download)
import sys
import unittest
from unittest import TestCase, TestProgram
import types
from copy import deepcopy
        self.addCleanup(removeTest)
 
        program = TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/unittest/test/test_program.py   main(Download)
        self.addCleanup(removeTest)
 
        program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)
class InitialisableProgram(unittest.TestProgram):
    exit = False
    result = None
    verbosity = 1
    defaultTest = None

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/unittest/test/test_program.py   main(Download)
        self.addCleanup(removeTest)
 
        program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)
class InitialisableProgram(unittest.TestProgram):
    exit = False
    result = None
    verbosity = 1
    defaultTest = None

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/unittest/test/test_program.py   TrustRouter(Download)
        self.addCleanup(removeTest)
 
        program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)
class InitialisableProgram(unittest.TestProgram):
    exit = False
    result = None
    verbosity = 1
    defaultTest = None
        class FakeTP(unittest.TestProgram):
            def parseArgs(self, *args, **kw): pass
            def runTests(self, *args, **kw): pass
        warnoptions = sys.warnoptions[:]
        try:

src/m/e/mechanize-0.2.5/test/test_unittest.py   mechanize(Download)
import sys
import unittest
from unittest import TestCase, TestProgram
import types
from copy import deepcopy
        self.addCleanup(removeTest)
 
        program = TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)

src/m/e/mechanize-HEAD/test/test_unittest.py   mechanize(Download)
import sys
import unittest
from unittest import TestCase, TestProgram
import types
from copy import deepcopy
        self.addCleanup(removeTest)
 
        program = TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)

src/e/m/empythoned-HEAD/cpython/Lib/unittest/test/test_program.py   empythoned(Download)
        self.addCleanup(removeTest)
 
        program = unittest.TestProgram(testRunner=runner, exit=False, verbosity=2)
 
        self.assertEqual(program.result, result)
class InitialisableProgram(unittest.TestProgram):
    exit = False
    result = None
    verbosity = 1
    defaultTest = None

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next