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

Class TCImage

source code

object --+    
         |    
        TC --+
             |
            TCImage

Image Test Case Class.

Instance Methods [hide private]
 
compare(self, label, baseline, undertest)
Compares 2 strings to see if they are the same.
source code

Inherited from TC: __init__

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

Class Variables [hide private]

Inherited from TC: logger

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

compare(self, label, baseline, undertest)

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.

Overrides: TC.compare
(inherited documentation)