Package tlib :: Package base :: Module SmartTester :: Class SmartTester
[hide private]
[frames] | no frames]

Class SmartTester

source code

Known Subclasses:

Instance Methods [hide private]
 
__init__(self) source code
 
assertThat(self, arg=None, *arguments) source code
 
equalsTo(self, argument2)
Embedded method to compare the passed argument to the self.argument :param argument2: :return: True if arguments are equal, else throw an error
source code
 
contains(self, argument2) source code
 
isTrue(self) source code
 
isFalse(self) source code
 
validate(self, expected=True)
Validates the first argument or validation function :param expected: Expected boolean value of the validation function :return: True if validation function result == expected
source code
 
throw_error(self, message) source code
 
_short(self, arg, length=5)
Shorten the string representation of the argument :param arg: an arbitrary value :param length: the length of the resulting string :return: shortened string
source code