Package dogtail :: Module tc :: Class TC
[hide private]
[frames] | no frames]

Class TC

source code

object --+
         |
        TC
Known Subclasses:

The Test Case Superclass

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
compare(self, label, baseline, undertest, encoding='utf-8')
Compares 2 strings to see if they are the same.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  logger = ResultsLogger()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

compare(self, label, baseline, undertest, encoding='utf-8')

source code 

Compares 2 strings to see if they are the same. The user may specify the encoding to which the two strings are to be normalized for the comparison. Default encoding is the default system encoding. Normalization to extended 8 bit charactersets is not supported.

When the origin of either baseline or undertest is a text file whose encoding is something other than ASCII, it is necessary to use codecs.open() instead of open(), so the file's encoding may be specified.