コード例 #1
0
def suite():
    st = unittest.TestSuite()
    st.addTest(unittest.makeSuite(X509TestCase))
    st.addTest(unittest.makeSuite(X509StackTestCase))
    st.addTest(unittest.makeSuite(X509ExtTestCase))
    st.addTest(unittest.makeSuite(CRLTestCase))
    return st
コード例 #2
0
ファイル: projecttest.py プロジェクト: felix-d/dot-files
def suite():
    result = unittest.TestSuite()
    result.addTests(unittest.makeSuite(ProjectTest))
    result.addTests(unittest.makeSuite(ResourceObserverTest))
    result.addTests(unittest.makeSuite(OutOfProjectTest))
    result.addTests(unittest.makeSuite(RopeFolderTest))
    return result
コード例 #3
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(X509TestCase))
    suite.addTest(unittest.makeSuite(X509_StackTestCase))
    suite.addTest(unittest.makeSuite(X509_ExtTestCase))
    suite.addTest(unittest.makeSuite(CRLTestCase))
    return suite
コード例 #4
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(MakoTestCase))
    suite.addTest(unittest.makeSuite(MakoDetailedTestCase))
    if MakoBabelTestCase:
        suite.addTest(unittest.makeSuite(MakoBabelTestCase))
    return suite
コード例 #5
0
ファイル: test_mako.py プロジェクト: AnIrishDuck/flask-mako
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(MakoTestCase))
    suite.addTest(unittest.makeSuite(MakoDetailedTestCase))
    if MakoBabelTestCase:
        suite.addTest(unittest.makeSuite(MakoBabelTestCase))
    return suite
コード例 #6
0
ファイル: test_x509.py プロジェクト: Hypernode/M2Crypto
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(X509TestCase))
    suite.addTest(unittest.makeSuite(X509_StackTestCase))
    suite.addTest(unittest.makeSuite(X509_ExtTestCase))
    suite.addTest(unittest.makeSuite(CRLTestCase))
    return suite
コード例 #7
0
ファイル: test_evp.py プロジェクト: quarkness/m2crypto
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(EVPTestCase))
    suite.addTest(unittest.makeSuite(CipherTestCase))
    suite.addTest(unittest.makeSuite(PBKDF2TestCase))
    suite.addTest(unittest.makeSuite(HMACTestCase))
    return suite
コード例 #8
0
ファイル: test_x509.py プロジェクト: makinacorpus/M2Crypto
def suite():
    st = unittest.TestSuite()
    st.addTest(unittest.makeSuite(X509TestCase))
    st.addTest(unittest.makeSuite(X509StackTestCase))
    st.addTest(unittest.makeSuite(X509ExtTestCase))
    st.addTest(unittest.makeSuite(CRLTestCase))
    return st
コード例 #9
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestQuotedCSV))
    suite.addTest(unittest.makeSuite(TestNonQuotedCSV))
    suite.addTest(unittest.makeSuite(TestInternals))

    return suite
コード例 #10
0
ファイル: test_evp.py プロジェクト: makinacorpus/M2Crypto
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(EVPTestCase))
    suite.addTest(unittest.makeSuite(CipherTestCase))
    suite.addTest(unittest.makeSuite(PBKDF2TestCase))
    suite.addTest(unittest.makeSuite(HMACTestCase))
    return suite
コード例 #11
0
ファイル: pycoretest.py プロジェクト: degustaf/rope
def suite():
    result = unittest.TestSuite()
    result.addTests(unittest.makeSuite(PyCoreTest))
    result.addTests(unittest.makeSuite(PyCoreInProjectsTest))
    result.addTests(unittest.makeSuite(TextChangeDetectorTest))
    result.addTests(unittest.makeSuite(PyCoreProjectConfigsTest))
    return result
コード例 #12
0
ファイル: pycoretest.py プロジェクト: DonJayamanne/rope
def suite():
    result = unittest.TestSuite()
    result.addTests(unittest.makeSuite(PyCoreTest))
    result.addTests(unittest.makeSuite(PyCoreInProjectsTest))
    result.addTests(unittest.makeSuite(TextChangeDetectorTest))
    result.addTests(unittest.makeSuite(PyCoreProjectConfigsTest))
    return result
コード例 #13
0
def suite():
    result = unittest.TestSuite()
    result.addTests(unittest.makeSuite(ProjectTest))
    result.addTests(unittest.makeSuite(ResourceObserverTest))
    result.addTests(unittest.makeSuite(OutOfProjectTest))
    result.addTests(unittest.makeSuite(RopeFolderTest))
    return result
コード例 #14
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestSchema))
    suite.addTest(unittest.makeSuite(TestElement))
    suite.addTest(unittest.makeSuite(TestCollection))
    suite.addTest(unittest.makeSuite(TestField))
    suite.addTest(unittest.makeSuite(TestReports))
    return suite
コード例 #15
0
ファイル: core_tester.py プロジェクト: iMichka/pygccxml
def create_suite():
    suite = unittest.TestSuite()
    if autoconfig.cxx_parsers_cfg.gccxml:
        suite.addTest(unittest.makeSuite(core_all_at_once_t))
        suite.addTest(unittest.makeSuite(core_all_at_once_no_opt_t))
        suite.addTest(unittest.makeSuite(core_file_by_file_t))
        suite.addTest(unittest.makeSuite(core_file_by_file_no_opt_t))
    return suite
コード例 #16
0
ファイル: testClasses.py プロジェクト: EDRN/edrn.sync
def test_suite():
    return unittest.TestSuite(
        [
            unittest.makeSuite(RDFPersonListTest),
            unittest.makeSuite(RDFSiteListTest),
            unittest.makeSuite(RDFCollaborativeGroupListTest),
        ]
    )
コード例 #17
0
def test_suite():
    import unittest2 as unittest
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestSetup))
    suite.addTest(unittest.makeSuite(TestIndividualCatalogContentItems))
    suite.addTest(unittest.makeSuite(TestIndividualRealContentItems))
    suite.addTest(unittest.makeSuite(TestFolderContents))
    return suite
コード例 #18
0
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestPerformance100))
    suite.addTest(unittest.makeSuite(TestPerformance1000))
    return suite
コード例 #19
0
def suite():
    all_tests = []
    all_tests.append(unittest2.makeSuite(ModelCreationTestCase, "test"))
    all_tests.append(unittest2.makeSuite(ModelSpecTestCase, "test"))
    all_tests.append(unittest2.makeSuite(ModelChanTestCase, "test"))
    all_tests.append(unittest2.makeSuite(ModelVolsysTestCase, "test"))
    all_tests.append(unittest2.makeSuite(ModelSurfsysTestCase, "test"))
    return unittest2.TestSuite(all_tests)
コード例 #20
0
def test_suite():
    import unittest2 as unittest
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestSetup))
    suite.addTest(unittest.makeSuite(TestIndividualCatalogContentItems))
    suite.addTest(unittest.makeSuite(TestIndividualRealContentItems))
    suite.addTest(unittest.makeSuite(TestFolderContents))
    return suite
コード例 #21
0
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestIntegration))
    suite.addTest(unittest.makeSuite(TestSection))
    return suite
コード例 #22
0
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestIntegration))
    suite.addTest(unittest.makeSuite(TestSection))
    return suite
コード例 #23
0
def create_suite():
    suite = unittest.TestSuite()
    if autoconfig.cxx_parsers_cfg.gccxml:
        suite.addTest(unittest.makeSuite(core_all_at_once_t))
        suite.addTest(unittest.makeSuite(core_all_at_once_no_opt_t))
        suite.addTest(unittest.makeSuite(core_file_by_file_t))
        suite.addTest(unittest.makeSuite(core_file_by_file_no_opt_t))
    return suite
コード例 #24
0
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestMxitPaymentRequest))
    suite.addTest(unittest.makeSuite(TestMxitPaymentResponse))
    return suite
コード例 #25
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestQuotedCSV))
    suite.addTest(unittest.makeSuite(TestNonQuotedCSV))
    suite.addTest(unittest.makeSuite(TestOverrideFloatToString))
    #unittest.TextTestRunner(verbosity=2).run(suite)

    return suite
コード例 #26
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(Test_get_case))
    suite.addTest(unittest.makeSuite(Test_get_field_freq))
    suite.addTest(unittest.makeSuite(TestGetFieldNames))
    suite.addTest(unittest.makeSuite(TestMinAndMax))

    return suite
コード例 #27
0
def suite():
    all_tests = []
    all_tests.append(unittest2.makeSuite(VolsysCreationTestCase, "test"))
    all_tests.append(unittest2.makeSuite(VolsysPropertyTestCase, "test"))
    all_tests.append(unittest2.makeSuite(VolsysReacTestCase, "test"))
    all_tests.append(unittest2.makeSuite(VolsysDiffTestCase, "test"))
    all_tests.append(unittest2.makeSuite(VolsysSpecTestCase, "test"))
    return unittest2.TestSuite(all_tests)
コード例 #28
0
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestPerformance100))
    suite.addTest(unittest.makeSuite(TestPerformance1000))
    return suite
コード例 #29
0
def test_suite():
    """
    :return:
    """
    suite = unittest.TestSuite()

    suite.addTest(unittest.makeSuite(TestBookLoan, prefix='test'))
    suite.addTest(unittest.makeSuite(TestBookLoanBrowser, prefix='test'))

    return suite
コード例 #30
0
def test_suite():
    """
    :return:
    """
    suite = unittest.TestSuite()

    suite.addTest(unittest.makeSuite(TestBookReview, prefix="test"))
    suite.addTest(unittest.makeSuite(TestBookReviewBrowser, prefix="test"))

    return suite
コード例 #31
0
def test_suite():
    """
    :return:
    """
    suite = unittest.TestSuite()

    suite.addTest(unittest.makeSuite(TestLibrary, prefix='test'))
    suite.addTest(unittest.makeSuite(TestLibraryBrowser, prefix='test'))

    return suite
コード例 #32
0
def all_tests():
    suite = unittest.TestSuite()
    # Redis
    suite.addTest(unittest.makeSuite(RedisTestCase))
    # Poller
    suite.addTest(unittest.makeSuite(PollerTestCase))
    # Storage
    suite.addTest(unittest.makeSuite(StorageTestCase))
    # Master test with all /!\ Need munin-node and redis
    suite.addTest(unittest.makeSuite(MasterTestCase))
    return suite
コード例 #33
0
ファイル: __init__.py プロジェクト: Seraf/numeter
def all_tests():
    suite = unittest.TestSuite()
    # Redis
    suite.addTest(unittest.makeSuite(RedisTestCase))
    # Poller
    suite.addTest(unittest.makeSuite(PollerTestCase))
    # Storage
    suite.addTest(unittest.makeSuite(StorageTestCase))
    # Master test with all /!\ Need munin-node and redis
    suite.addTest(unittest.makeSuite(MasterTestCase))
    return suite
コード例 #34
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(SeaSurfTestCase))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseExemptViews))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseIncludeViews))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseExemptUrls))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseDisableCookie))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseSkipValidation))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseSave))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseSetCookie))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseReferer))
    suite.addTest(unittest.makeSuite(SeaSurfTestManualValidation))
    return suite
コード例 #35
0
ファイル: __init__.py プロジェクト: DonJayamanne/rope
def suite():
    result = unittest.TestSuite()
    result.addTests(unittest.makeSuite(ropetest.contrib.generatetest.
                                       GenerateTest))
    result.addTests(ropetest.contrib.codeassisttest.suite())
    result.addTests(ropetest.contrib.autoimporttest.suite())
    result.addTests(ropetest.contrib.findittest.suite())
    result.addTests(unittest.makeSuite(ropetest.contrib.changestacktest.
                                       ChangeStackTest))
    result.addTests(unittest.makeSuite(ropetest.contrib.fixmodnamestest.
                                       FixModuleNamesTest))
    result.addTests(unittest.makeSuite(ropetest.contrib.finderrorstest.
                                       FindErrorsTest))
    return result
コード例 #36
0
ファイル: __init__.py プロジェクト: caseboy01/myemacs
def suite():
    result = unittest.TestSuite()
    result.addTests(
        unittest.makeSuite(ropetest.contrib.generatetest.GenerateTest))
    result.addTests(ropetest.contrib.codeassisttest.suite())
    result.addTests(ropetest.contrib.autoimporttest.suite())
    result.addTests(ropetest.contrib.findittest.suite())
    result.addTests(
        unittest.makeSuite(ropetest.contrib.changestacktest.ChangeStackTest))
    result.addTests(
        unittest.makeSuite(
            ropetest.contrib.fixmodnamestest.FixModuleNamesTest))
    result.addTests(
        unittest.makeSuite(ropetest.contrib.finderrorstest.FindErrorsTest))
    return result
コード例 #37
0
ファイル: test_backend.py プロジェクト: develersrl/pyuac
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(OSXKeychainTestCase))
    suite.addTest(unittest.makeSuite(GnomeKeyringTestCase))
    suite.addTest(unittest.makeSuite(KDEWalletCanceledTestCase))
    suite.addTest(unittest.makeSuite(KDEKWalletTestCase))
    suite.addTest(unittest.makeSuite(KDEKWalletInQApplication))
    suite.addTest(unittest.makeSuite(UncryptedFileKeyringTestCase))
    suite.addTest(unittest.makeSuite(CryptedFileKeyringTestCase))
    suite.addTest(unittest.makeSuite(Win32CryptoKeyringTestCase))
    suite.addTest(unittest.makeSuite(WinVaultKeyringTestCase))
    return suite
コード例 #38
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(SeaSurfTestCase))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseExemptViews))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseIncludeViews))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseExemptUrls))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseDisableCookie))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseSave))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseSetCookie))
    suite.addTest(unittest.makeSuite(SeaSurfTestCaseReferer))
    suite.addTest(unittest.makeSuite(SeaSurfTestManualValidation))
    return suite
コード例 #39
0
ファイル: test_backend.py プロジェクト: wputra/MOS-centos
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(OSXKeychainTestCase))
    suite.addTest(unittest.makeSuite(GnomeKeyringTestCase))
    suite.addTest(unittest.makeSuite(KDEWalletCanceledTestCase))
    suite.addTest(unittest.makeSuite(KDEKWalletTestCase))
    suite.addTest(unittest.makeSuite(KDEKWalletInQApplication))
    suite.addTest(unittest.makeSuite(UncryptedFileKeyringTestCase))
    suite.addTest(unittest.makeSuite(CryptedFileKeyringTestCase))
    suite.addTest(unittest.makeSuite(Win32CryptoKeyringTestCase))
    suite.addTest(unittest.makeSuite(WinVaultKeyringTestCase))
    return suite
コード例 #40
0
ファイル: tests.py プロジェクト: athomerson/plone.app.z3cform
def test_suite():

    inlineValidationTests = zope.testing.doctest.DocFileSuite(
        'inline_validation.rst',
        package='plone.app.z3cform',
        optionflags=(
            zope.testing.doctest.ELLIPSIS |
            zope.testing.doctest.NORMALIZE_WHITESPACE
        )
    )
    inlineValidationTests.layer = PAZ3CForm_INTEGRATION_TESTING

    suite = unittest.TestSuite([
        unittest.makeSuite(IntegrationTests),
        zope.testing.doctest.DocFileSuite(
            'wysiwyg/README.rst',
            package='plone.app.z3cform',
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        ),
        zope.testing.doctest.DocFileSuite(
            'queryselect/README.rst',
            package='plone.app.z3cform',
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        ),
        zope.testing.doctest.DocTestSuite(
            'plone.app.z3cform.wysiwyg.widget',
            package='plone.app.z3cform',
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        ),
        inlineValidationTests,
    ])
    return suite
コード例 #41
0
ファイル: test_practice.py プロジェクト: Siyavula/emas.theme
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestPracticeBrowserView))
    return suite
コード例 #42
0
def suite():
    """
    Gather all the tests in a test suite.
    """
    test_suite = unittest.TestSuite()
    test_suite.addTest(unittest.makeSuite(SurfacesTest))
    return test_suite
コード例 #43
0
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestVocabularyManager))
    return suite
コード例 #44
0
    def verify(self, url):
        assert issubclass(
            TestStorage,
            StorageFunctionalTestCase)
        os.environ["MOZSVC_TEST_REMOTE"] = url
        test_ini_file = ("/data/server-syncstorage/build"
                        "/lib/syncstorage/tests/tests.ini")
        os.environ["MOZSVC_TEST_INI_FILE"] = test_ini_file
        secret = self.get_node_secrets(url)[0]
        logging.debug("url and secret are %s %s" % (url, secret))

        class LiveTestCases(TestStorage):
            def _authenticate(self):
                policy = self.config.registry.getUtility(
                              pyramid.interfaces.IAuthenticationPolicy)

                if secret is not None:
                    policy.secrets._secrets = [secret]
                return super(LiveTestCases, self)._authenticate()

        # Now use the unittest2 runner to execute them.
        suite = unittest2.TestSuite()
        suite.addTest(unittest2.makeSuite(LiveTestCases))
        runner = unittest2.TextTestRunner(
            stream=sys.stderr,
            failfast=True,
        )
        res = runner.run(suite)
        logging.info("Result of verification is %s" % res.wasSuccessful())
        return True if res.wasSuccessful() else False
コード例 #45
0
    def verify(self, url):
        assert issubclass(TestStorage, StorageFunctionalTestCase)
        os.environ["MOZSVC_TEST_REMOTE"] = url
        test_ini_file = ("/data/server-syncstorage/build"
                         "/lib/syncstorage/tests/tests.ini")
        os.environ["MOZSVC_TEST_INI_FILE"] = test_ini_file
        secret = self.get_node_secrets(url)[0]
        logging.debug("url and secret are %s %s" % (url, secret))

        class LiveTestCases(TestStorage):
            def _authenticate(self):
                policy = self.config.registry.getUtility(
                    pyramid.interfaces.IAuthenticationPolicy)

                if secret is not None:
                    policy.secrets._secrets = [secret]
                return super(LiveTestCases, self)._authenticate()

        # Now use the unittest2 runner to execute them.
        suite = unittest2.TestSuite()
        suite.addTest(unittest2.makeSuite(LiveTestCases))
        runner = unittest2.TextTestRunner(
            stream=sys.stderr,
            failfast=True,
        )
        res = runner.run(suite)
        logging.info("Result of verification is %s" % res.wasSuccessful())
        return True if res.wasSuccessful() else False
コード例 #46
0
def test_suite():
    return unittest.TestSuite([
        ztc.FunctionalDocFileSuite(
            'browser.txt', package='collective.plonetruegallery',
            test_class=BaseFunctionalTest),
        unittest.makeSuite(TestViews),
    ])
コード例 #47
0
def test_suite():

    inlineValidationTests = zope.testing.doctest.DocFileSuite(
        'inline_validation.rst',
        package='plone.app.z3cform',
        optionflags=(zope.testing.doctest.ELLIPSIS
                     | zope.testing.doctest.NORMALIZE_WHITESPACE))
    inlineValidationTests.layer = PAZ3CForm_INTEGRATION_TESTING

    suite = unittest.TestSuite([
        unittest.makeSuite(IntegrationTests),
        zope.testing.doctest.DocFileSuite(
            'wysiwyg/README.rst',
            package='plone.app.z3cform',
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        ),
        zope.testing.doctest.DocFileSuite(
            'queryselect/README.rst',
            package='plone.app.z3cform',
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        ),
        zope.testing.doctest.DocTestSuite(
            'plone.app.z3cform.wysiwyg.widget',
            package='plone.app.z3cform',
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        ),
        inlineValidationTests,
    ])
    return suite
コード例 #48
0
ファイル: test_getWindow.py プロジェクト: npklein/pyMSA
def suite():
	suite = unittest.TestSuite()
	# adding the unit tests to the test suite
	suite.addTest(unittest.makeSuite(testGetWindow))
	return suite
	
#unittest.TextTestRunner(verbosity=2).run(suite())
コード例 #49
0
def test_suite():
    return unittest.TestSuite([
        ztc.FunctionalDocFileSuite('browser.txt',
                                   package='collective.plonetruegallery',
                                   test_class=BaseFunctionalTest),
        unittest.makeSuite(TestViews),
    ])
コード例 #50
0
ファイル: test_memory_leaks.py プロジェクト: desbma/psutil
def main():
    test_suite = unittest.TestSuite()
    tests = [TestProcessObjectLeaksZombie, TestProcessObjectLeaks, TestModuleFunctionsLeaks]
    for test in tests:
        test_suite.addTest(unittest.makeSuite(test))
    result = unittest.TextTestRunner(verbosity=2).run(test_suite)
    return result.wasSuccessful()
コード例 #51
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(SessionTestCase))
    suite.addTest(unittest.makeSuite(XmlRpcLibTestCase))
    suite.addTest(unittest.makeSuite(FtpsLibTestCase))
    suite.addTest(unittest.makeSuite(PassSSLClientTestCase))
    suite.addTest(unittest.makeSuite(HttpslibSSLClientTestCase))
    suite.addTest(unittest.makeSuite(UrllibSSLClientTestCase))
    suite.addTest(unittest.makeSuite(Urllib2SSLClientTestCase))
    suite.addTest(unittest.makeSuite(MiscSSLClientTestCase))
    suite.addTest(unittest.makeSuite(FtpslibTestCase))
    try:
        import M2Crypto.SSL.TwistedProtocolWrapper as wrapper  # noqa
        suite.addTest(unittest.makeSuite(TwistedSSLClientTestCase))
    except ImportError:
        pass
    return suite
コード例 #52
0
def test_suite():
    suite = unittest.TestSuite()
    suite.addTests([
        layered(robotsuite.RobotTestSuite("test_embedly.txt"),
                layer=EMBEDLY_ACCEPTANCE_TESTING),
    ])
    suite.addTest(unittest.makeSuite(TestSetup))
    return suite
コード例 #53
0
ファイル: test_bio_file.py プロジェクト: return42/m2crypto
def suite():
    # Python 2.2 warns that os.tmpnam() is unsafe.
    try:
        import warnings
        warnings.filterwarnings('ignore')
    except ImportError:
        pass
    return unittest.makeSuite(FileTestCase)
コード例 #54
0
def test_main():
    test_suite = unittest.TestSuite()
    tests = [TestProcessObjectLeaksZombie,
             TestProcessObjectLeaks,
             TestModuleFunctionsLeaks]
    for test in tests:
        test_suite.addTest(unittest.makeSuite(test))
    result = unittest.TextTestRunner(verbosity=2).run(test_suite)
    return result.wasSuccessful()
コード例 #55
0
ファイル: type_hinting_test.py プロジェクト: fjzhou/config
def suite():
    result = unittest.TestSuite()
    result.addTests(unittest.makeSuite(DocstringParamHintingTest))
    result.addTests(unittest.makeSuite(DocstringReturnHintingTest))
    result.addTests(unittest.makeSuite(DocstringNoneAssignmentHintingTest))
    result.addTests(unittest.makeSuite(DocstringNotImplementedAssignmentHintingTest))
    result.addTests(unittest.makeSuite(PEP0484CommentNoneAssignmentHintingTest))
    result.addTests(unittest.makeSuite(PEP0484CommentNotImplementedAssignmentHintingTest))
    result.addTests(unittest.makeSuite(EvaluateTest))
    result.addTests(unittest.makeSuite(RegressionHintingTest))
    return result
コード例 #56
0
def main(argv=None):
    #import sys;sys.argv = ['', 'Test.testName']

    options = parse_options()

    print 'Using DATA from {0}'.format(DATA_PATH)

    suite = unittest.TestSuite()
    suite.addTests(unittest.makeSuite(TestIterator))
    suite.addTests(unittest.makeSuite(TestLabel))
    suite.addTests(unittest.makeSuite(TestImage))
    suite.addTests(unittest.makeSuite(TestMaskedImage))
    #suite.addTests(doctest.DocTestSuite(name))

    #    if options.xml:
    #        unittest.main(testRunner=xmlrunner.XMLTestRunner(output='test-reports'))
    #    else:
    results = unittest.TextTestRunner(verbosity=2).run(suite)
    return not results.wasSuccessful()
コード例 #57
0
def test_suite():
    suite = unittest.TestSuite()
    suite.addTests([
        unittest.makeSuite(MultiFormTest),
        layered(
            doctest.DocTestSuite('uu.formlibrary.forms'),
            layer=DEFAULT_PROFILE_TESTING,
            ),
        ])
    return suite
コード例 #58
0
ファイル: test_vars.py プロジェクト: pyfidelity/templer.core
def test_suite():
    suite = unittest.TestSuite([
        unittest.makeSuite(test_var),
        unittest.makeSuite(test_BooleanVar),
        unittest.makeSuite(test_OnOffVar),
        unittest.makeSuite(test_IntVar),
        unittest.makeSuite(test_BoundedIntVar),
        unittest.makeSuite(test_StringVar),
        unittest.makeSuite(test_TextVar),
        unittest.makeSuite(test_DottedVar),
    ])
    return suite
コード例 #59
0
ファイル: codeanalyzetest.py プロジェクト: vansdev/leo-editor
def suite():
    result = unittest.TestSuite()
    result.addTests(unittest.makeSuite(SourceLinesAdapterTest))
    result.addTests(unittest.makeSuite(WordRangeFinderTest))
    result.addTests(unittest.makeSuite(ScopeNameFinderTest))
    result.addTests(unittest.makeSuite(LogicalLineFinderTest))
    result.addTests(unittest.makeSuite(TokenizerLogicalLineFinderTest))
    result.addTests(unittest.makeSuite(CustomLogicalLineFinderTest))
    return result