Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
unittestgui.GUITestResult Class Reference
Inheritance diagram for unittestgui.GUITestResult:
Inheritance graph
[legend]
Collaboration diagram for unittestgui.GUITestResult:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def addError
def addFailure
def addSkip
def addExpectedFailure
def stopTest
def startTest

Public Attributes

 callback

Detailed Description

A TestResult that makes callbacks to its associated GUI TestRunner.
Used by BaseGUITestRunner. Need not be created directly.

Definition at line 157 of file unittestgui.py.


Constructor & Destructor Documentation

def unittestgui.GUITestResult.__init__ (   self,
  callback 
)

Definition at line 161 of file unittestgui.py.

00161 
00162     def __init__(self, callback):
00163         unittest.TestResult.__init__(self)
00164         self.callback = callback


Member Function Documentation

def unittestgui.GUITestResult.addError (   self,
  test,
  err 
)

Definition at line 165 of file unittestgui.py.

00165 
00166     def addError(self, test, err):
00167         unittest.TestResult.addError(self, test, err)
00168         self.callback.notifyTestErrored(test, err)

def unittestgui.GUITestResult.addExpectedFailure (   self,
  test,
  err 
)

Definition at line 177 of file unittestgui.py.

00177 
00178     def addExpectedFailure(self, test, err):
00179         super(GUITestResult,self).addExpectedFailure(test, err)
00180         self.callback.notifyTestFailedExpectedly(test, err)

def unittestgui.GUITestResult.addFailure (   self,
  test,
  err 
)

Definition at line 169 of file unittestgui.py.

00169 
00170     def addFailure(self, test, err):
00171         unittest.TestResult.addFailure(self, test, err)
00172         self.callback.notifyTestFailed(test, err)

def unittestgui.GUITestResult.addSkip (   self,
  test,
  reason 
)

Definition at line 173 of file unittestgui.py.

00173 
00174     def addSkip(self, test, reason):
00175         super(GUITestResult,self).addSkip(test, reason)
00176         self.callback.notifyTestSkipped(test, reason)

def unittestgui.GUITestResult.startTest (   self,
  test 
)

Definition at line 185 of file unittestgui.py.

00185 
00186     def startTest(self, test):
00187         unittest.TestResult.startTest(self, test)
00188         self.callback.notifyTestStarted(test)
00189 

def unittestgui.GUITestResult.stopTest (   self,
  test 
)

Definition at line 181 of file unittestgui.py.

00181 
00182     def stopTest(self, test):
00183         unittest.TestResult.stopTest(self, test)
00184         self.callback.notifyTestFinished(test)


Member Data Documentation

Definition at line 163 of file unittestgui.py.


The documentation for this class was generated from the following file: