Ejemplo n.º 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
Ejemplo n.º 2
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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 5
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
Ejemplo n.º 6
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
Ejemplo n.º 7
0
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
Ejemplo n.º 8
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
Ejemplo n.º 9
0
def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestQuotedCSV))
    suite.addTest(unittest.makeSuite(TestNonQuotedCSV))
    suite.addTest(unittest.makeSuite(TestInternals))

    return suite
Ejemplo n.º 10
0
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
Ejemplo n.º 11
0
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
Ejemplo n.º 12
0
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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 15
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
Ejemplo n.º 16
0
def test_suite():
    return unittest.TestSuite(
        [
            unittest.makeSuite(RDFPersonListTest),
            unittest.makeSuite(RDFSiteListTest),
            unittest.makeSuite(RDFCollaborativeGroupListTest),
        ]
    )
Ejemplo n.º 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
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
Ejemplo n.º 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)
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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
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
Ejemplo n.º 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
Ejemplo n.º 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)
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
def test_suite():
    """
    :return:
    """
    suite = unittest.TestSuite()

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

    return suite
def test_suite():
    """
    :return:
    """
    suite = unittest.TestSuite()

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

    return suite
def test_suite():
    """
    :return:
    """
    suite = unittest.TestSuite()

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

    return suite
Ejemplo n.º 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
Ejemplo n.º 33
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
Ejemplo n.º 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
Ejemplo n.º 35
0
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
Ejemplo n.º 36
0
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
Ejemplo n.º 37
0
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
Ejemplo n.º 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
Ejemplo n.º 39
0
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
Ejemplo n.º 40
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
Ejemplo n.º 41
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(TestPracticeBrowserView))
    return suite
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
def test_suite():
    return unittest.TestSuite([
        ztc.FunctionalDocFileSuite(
            'browser.txt', package='collective.plonetruegallery',
            test_class=BaseFunctionalTest),
        unittest.makeSuite(TestViews),
    ])
Ejemplo n.º 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
Ejemplo n.º 48
0
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())
def test_suite():
    return unittest.TestSuite([
        ztc.FunctionalDocFileSuite('browser.txt',
                                   package='collective.plonetruegallery',
                                   test_class=BaseFunctionalTest),
        unittest.makeSuite(TestViews),
    ])
Ejemplo n.º 50
0
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()
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 53
0
def suite():
    # Python 2.2 warns that os.tmpnam() is unsafe.
    try:
        import warnings
        warnings.filterwarnings('ignore')
    except ImportError:
        pass
    return unittest.makeSuite(FileTestCase)
Ejemplo n.º 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()
Ejemplo n.º 55
0
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
Ejemplo n.º 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()
Ejemplo n.º 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
Ejemplo n.º 58
0
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
Ejemplo n.º 59
0
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