def test_basicTrialIntegration(self):
     loader = runner.TestLoader()
     suite = loader.loadDoctests(mockdoctest)
     self.assertEqual(7, suite.countTestCases())
Esempio n. 2
0
 def setUp(self):
     self.output = NativeStringIO()
     self.reporter = reporter.TestResult()
     self.loader = runner.TestLoader()
Esempio n. 3
0
 def setUp(self):
     self.loader = runner.TestLoader()
Esempio n. 4
0
 def test_expectedResults(self, count=1):
     """
     Trial can correctly run doctests with its xUnit test APIs.
     """
     suite = runner.TestLoader().loadDoctests(mockdoctest)
     self._testRun(suite)
Esempio n. 5
0
def GetTestSuite():
    loader = runner.TestLoader()
    suite = loader.suiteFactory()
    suite.addTest(loader.loadClass(TournamentTestCase))
    return suite
Esempio n. 6
0
 def setUp(self):
     self.result = _CleanUpReporter()
     self.loader = runner.TestLoader()
Esempio n. 7
0
def GetTestSuite():
    loader = runner.TestLoader()
    #    loader.methodPrefix = "test09"
    suite = loader.suiteFactory()
    suite.addTest(loader.loadClass(PokerCrashTestCase))
    return suite
Esempio n. 8
0
def GetTestSuite():
    loader = runner.TestLoader()
    #    loader.methodPrefix = "test02"
    suite = loader.suiteFactory()
    suite.addTest(loader.loadClass(SessionProxyFilterTestCase))
    return suite
Esempio n. 9
0
def GetTestSuite():
    loader = runner.TestLoader()
    suite = loader.suiteFactory()
    suite.addTest(loader.loadClass(LeakReferenceTestCase))
    return suite
Esempio n. 10
0
 def setUp(self):
     """
     Setup our test case
     """
     self.result = reporter.Reporter(NativeStringIO())
     self.loader = runner.TestLoader()
Esempio n. 11
0
 def setUp(self):
     super(FinderPy3Tests, self).setUp()
     self.loader = runner.TestLoader()
Esempio n. 12
0
def GetTestSuite():
    loader = runner.TestLoader()
    suite = loader.loadClass(PokerDatabaseTestCase)
    return suite
Esempio n. 13
0
 def setUp(self):
     self.stream = StringIO.StringIO()
     self._stdout, sys.stdout = sys.stdout, self.stream
     self.loader = runner.TestLoader()
Esempio n. 14
0
 def setUp(self):
     self.loader = runner.TestLoader()
     packages.SysPathManglingTest.setUp(self)
Esempio n. 15
0
 def loadSuite(self, suite):
     self.loader = runner.TestLoader()
     self.suite = self.loader.loadClass(suite)
     self.reporter = reporter.TestResult()
Esempio n. 16
0
 def setUp(self):
     packages.PackageTest.setUp(self)
     self.loader = runner.TestLoader()
Esempio n. 17
0
 def setUp(self):
     self.result = reporter.Reporter(StringIO.StringIO())
     self.loader = runner.TestLoader()
Esempio n. 18
0
 def runSampleSuite(self, my_runner):
     loader = runner.TestLoader()
     suite = loader.loadByName('twisted.trial.test.sample', True)
     return my_runner.run(suite)
Esempio n. 19
0
 def setUp(self):
     self.reporter = reporter.Reporter()
     self.loader = runner.TestLoader()
Esempio n. 20
0
 def setUp(self):
     self.m_test = runner.TestLoader()
 def setUp(self):
     super().setUp()
     self.loader = runner.TestLoader()