Did I find the right examples for you? yes no

All Samples(16)  |  Call(14)  |  Derive(2)  |  Import(0)
A simple test suite that doesn't provide class or module shared fixtures.
    

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/unittest/test/test_suite.py   TrustRouter(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/unittest/test/test_suite.py   pytaint(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/s/t/static-python-HEAD/Lib/unittest/test/test_suite.py   static-python(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/unittest/test/test_suite.py   main(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/unittest/test/test_suite.py   main(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/g/i/gitstack-HEAD/python/Lib/unittest/test/test_suite.py   gitstack(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/f/a/fabtools-HEAD/fabtools/tests/vagrant.py   fabtools(Download)
class VagrantTestSuite(unittest.BaseTestSuite):
    """
    Test suite with vagrant support
    """
 

src/e/m/empythoned-HEAD/cpython/Lib/unittest/test/test_suite.py   empythoned(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/p/y/PyCPython-HEAD/Python-2.7.1/Lib/unittest/test/test_suite.py   PyCPython(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

src/c/p/cpython-HEAD/Lib/unittest/test/test_suite.py   cpython(Download)
        self.addCleanup(sys.modules.pop, 'Module')
 
        suite = unittest.BaseTestSuite()
        suite.addTests([Test('testPass'), Test('testFail')])
        self.assertEqual(suite.countTestCases(), 2)

  1 | 2  Next