def test_basicTrialIntegration(self): loader = runner.TestLoader() suite = loader.loadDoctests(mockdoctest) self.assertEqual(7, suite.countTestCases())
def setUp(self): self.output = NativeStringIO() self.reporter = reporter.TestResult() self.loader = runner.TestLoader()
def setUp(self): self.loader = runner.TestLoader()
def test_expectedResults(self, count=1): """ Trial can correctly run doctests with its xUnit test APIs. """ suite = runner.TestLoader().loadDoctests(mockdoctest) self._testRun(suite)
def GetTestSuite(): loader = runner.TestLoader() suite = loader.suiteFactory() suite.addTest(loader.loadClass(TournamentTestCase)) return suite
def setUp(self): self.result = _CleanUpReporter() self.loader = runner.TestLoader()
def GetTestSuite(): loader = runner.TestLoader() # loader.methodPrefix = "test09" suite = loader.suiteFactory() suite.addTest(loader.loadClass(PokerCrashTestCase)) return suite
def GetTestSuite(): loader = runner.TestLoader() # loader.methodPrefix = "test02" suite = loader.suiteFactory() suite.addTest(loader.loadClass(SessionProxyFilterTestCase)) return suite
def GetTestSuite(): loader = runner.TestLoader() suite = loader.suiteFactory() suite.addTest(loader.loadClass(LeakReferenceTestCase)) return suite
def setUp(self): """ Setup our test case """ self.result = reporter.Reporter(NativeStringIO()) self.loader = runner.TestLoader()
def setUp(self): super(FinderPy3Tests, self).setUp() self.loader = runner.TestLoader()
def GetTestSuite(): loader = runner.TestLoader() suite = loader.loadClass(PokerDatabaseTestCase) return suite
def setUp(self): self.stream = StringIO.StringIO() self._stdout, sys.stdout = sys.stdout, self.stream self.loader = runner.TestLoader()
def setUp(self): self.loader = runner.TestLoader() packages.SysPathManglingTest.setUp(self)
def loadSuite(self, suite): self.loader = runner.TestLoader() self.suite = self.loader.loadClass(suite) self.reporter = reporter.TestResult()
def setUp(self): packages.PackageTest.setUp(self) self.loader = runner.TestLoader()
def setUp(self): self.result = reporter.Reporter(StringIO.StringIO()) self.loader = runner.TestLoader()
def runSampleSuite(self, my_runner): loader = runner.TestLoader() suite = loader.loadByName('twisted.trial.test.sample', True) return my_runner.run(suite)
def setUp(self): self.reporter = reporter.Reporter() self.loader = runner.TestLoader()
def setUp(self): self.m_test = runner.TestLoader()
def setUp(self): super().setUp() self.loader = runner.TestLoader()