Ft.Lib.TestSuite.TestSuite
Provides the TestSuite class, which represents the package(s) to test.
Copyright 2002 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Modules
Classes
-
class
BufferType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
class
BuiltinFunctionType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
__name__ = 'builtin_function_or_method'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__self__ = <attribute '__self__' of 'builtin_function_or_method' objects>
-
class
BuiltinMethodType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
__name__ = 'builtin_function_or_method'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__self__ = <attribute '__self__' of 'builtin_function_or_method' objects>
-
class
ClassType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
__new__ = <built-in method __new__ of type object>
-
class
CodeType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
co_argcount = <member 'co_argcount' of 'code' objects>
-
co_cellvars = <member 'co_cellvars' of 'code' objects>
-
co_code = <member 'co_code' of 'code' objects>
-
co_consts = <member 'co_consts' of 'code' objects>
-
co_filename = <member 'co_filename' of 'code' objects>
-
co_firstlineno = <member 'co_firstlineno' of 'code' objects>
-
co_flags = <member 'co_flags' of 'code' objects>
-
co_freevars = <member 'co_freevars' of 'code' objects>
-
co_lnotab = <member 'co_lnotab' of 'code' objects>
-
co_name = <member 'co_name' of 'code' objects>
-
co_names = <member 'co_names' of 'code' objects>
-
co_nlocals = <member 'co_nlocals' of 'code' objects>
-
co_stacksize = <member 'co_stacksize' of 'code' objects>
-
co_varnames = <member 'co_varnames' of 'code' objects>
-
class
ComplexType(
__builtin__.object)
-
complex(real[, imag]) -> complex number
Create a complex number from a real part and an optional imaginary part.
This is equivalent to (real + imag*1j) where imag defaults to 0.
Data and other non-method functions defined here:
-
__doc__ = 'complex(real[, imag]) -> complex number\n\nCreate ...ent to (real + imag*1j) where imag defaults to 0.'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
imag = <member 'imag' of 'complex' objects>
-
real = <member 'real' of 'complex' objects>
-
class
DictProxyType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
class
DictType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = 'dict() -> new empty dictionary.\ndict(mapping) ->...\n d = {}\n for k, v in seq:\n d[k] = v'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
DictionaryType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = 'dict() -> new empty dictionary.\ndict(mapping) ->...\n d = {}\n for k, v in seq:\n d[k] = v'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
EllipsisType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
class
FileType(
__builtin__.object)
-
file(name[, mode[, buffering]]) -> file object
Open a file. The mode can be 'r', 'w' or 'a' for reading (default),
writing or appending. The file will be created if it doesn't exist
when opened for writing or appending; it will be truncated when
opened for writing. Add a 'b' to the mode for binary files.
Add a '+' to the mode to allow simultaneous reading and writing.
If the buffering argument is given, 0 means unbuffered, 1 means line
buffered, and larger numbers specify the buffer size.
Note: open() is an alias for file().
-
close(...)
-
close() -> None or (perhaps) an integer. Close the file.
Sets data attribute .closed to true. A closed file cannot be used for
further I/O operations. close() may be called more than once without
error. Some kinds of file objects (for example, opened by popen())
may return an exit status upon closing.
-
fileno(...)
-
fileno() -> integer "file descriptor".
This is needed for lower-level file interfaces, such os.read().
-
read(...)
-
read([size]) -> read at most size bytes, returned as a string.
If the size argument is negative or omitted, read until EOF is reached.
-
readline(...)
-
readline([size]) -> next line from the file, as a string.
Retain newline. A non-negative size argument limits the maximum
number of bytes to return (an incomplete line may be returned then).
Return an empty string at EOF.
-
readlines(...)
-
readlines([size]) -> list of strings, each a line from the file.
Call readline() repeatedly and return a list of the lines so read.
The optional size argument, if given, is an approximate bound on the
total number of bytes in the lines returned.
-
seek(...)
-
seek(offset[, whence]) -> None. Move to new file position.
Argument offset is a byte count. Optional argument whence defaults to
0 (offset from start of file, offset should be >= 0); other values are 1
(move relative to current position, positive or negative), and 2 (move
relative to end of file, usually negative, although many platforms allow
seeking beyond the end of a file).
Note that not all file objects are seekable.
-
truncate(...)
-
truncate([size]) -> None. Truncate the file to at most size bytes.
Size defaults to the current file position, as returned by tell().
-
write(...)
-
write(str) -> None. Write string str to file.
Note that due to buffering, flush() or close() may be needed before
the file on disk reflects the data written.
-
writelines(...)
-
writelines(sequence_of_strings) -> None. Write the strings to the file.
Note that newlines are not added. The sequence can be any iterable object
producing strings. This is equivalent to calling write() for each string.
-
xreadlines(...)
-
xreadlines() -> next line from the file, as a string.
Equivalent to xreadlines.xreadlines(file). This is like readline(), but
often quicker, due to reading ahead internally.
Data and other non-method functions defined here:
-
__doc__ = 'file(name[, mode[, buffering]]) -> file object\n\n...ffer size.\nNote: open() is an alias for file().\n'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
closed = <attribute 'closed' of 'file' objects>
-
mode = <member 'mode' of 'file' objects>
-
name = <member 'name' of 'file' objects>
-
softspace = <member 'softspace' of 'file' objects>
-
class
FloatType(
__builtin__.object)
-
float(x) -> floating point number
Convert a string or number to a floating point number, if possible.
Data and other non-method functions defined here:
-
__doc__ = 'float(x) -> floating point number\n\nConvert a str...r number to a floating point number, if possible.'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
FrameType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
f_back = <member 'f_back' of 'frame' objects>
-
f_builtins = <member 'f_builtins' of 'frame' objects>
-
f_code = <member 'f_code' of 'frame' objects>
-
f_exc_traceback = <member 'f_exc_traceback' of 'frame' objects>
-
f_exc_type = <member 'f_exc_type' of 'frame' objects>
-
f_exc_value = <member 'f_exc_value' of 'frame' objects>
-
f_globals = <member 'f_globals' of 'frame' objects>
-
f_lasti = <member 'f_lasti' of 'frame' objects>
-
f_lineno = <member 'f_lineno' of 'frame' objects>
-
f_locals = <attribute 'f_locals' of 'frame' objects>
-
f_restricted = <member 'f_restricted' of 'frame' objects>
-
f_trace = <member 'f_trace' of 'frame' objects>
-
class
FunctionType(
__builtin__.object)
Data and other non-method functions defined here:
-
__dict__ = <dict-proxy object>
-
__doc__ = None
-
__name__ = 'function'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
func_closure = <member 'func_closure' of 'function' objects>
-
func_code = <attribute 'func_code' of 'function' objects>
-
func_defaults = <attribute 'func_defaults' of 'function' objects>
-
func_dict = <attribute 'func_dict' of 'function' objects>
-
func_doc = <member 'func_doc' of 'function' objects>
-
func_globals = <member 'func_globals' of 'function' objects>
-
func_name = <member 'func_name' of 'function' objects>
-
class
GeneratorType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
gi_frame = <member 'gi_frame' of 'generator' objects>
-
gi_running = <member 'gi_running' of 'generator' objects>
-
class
InstanceType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
class
IntType(
__builtin__.object)
-
int(x[, base]) -> integer
Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
Data and other non-method functions defined here:
-
__doc__ = 'int(x[, base]) -> integer\n\nConvert a string or n...or to supply a base when converting a\nnon-string.'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
LambdaType(
__builtin__.object)
Data and other non-method functions defined here:
-
__dict__ = <dict-proxy object>
-
__doc__ = None
-
__name__ = 'function'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
func_closure = <member 'func_closure' of 'function' objects>
-
func_code = <attribute 'func_code' of 'function' objects>
-
func_defaults = <attribute 'func_defaults' of 'function' objects>
-
func_dict = <attribute 'func_dict' of 'function' objects>
-
func_doc = <member 'func_doc' of 'function' objects>
-
func_globals = <member 'func_globals' of 'function' objects>
-
func_name = <member 'func_name' of 'function' objects>
-
class
ListType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = "list() -> new list\nlist(sequence) -> new list initialized from sequence's items"
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
LongType(
__builtin__.object)
-
long(x[, base]) -> integer
Convert a string or number to a long integer, if possible. A floating
point argument will be truncated towards zero (this does not include a
string representation of a floating point number!) When converting a
string, use the optional base. It is an error to supply a base when
converting a non-string.
Data and other non-method functions defined here:
-
__doc__ = 'long(x[, base]) -> integer\n\nConvert a string or ...or to supply a base when\nconverting a non-string.'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
MethodType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
im_class = <member 'im_class' of 'instance method' objects>
-
im_func = <member 'im_func' of 'instance method' objects>
-
im_self = <member 'im_self' of 'instance method' objects>
-
class
ModuleType(
__builtin__.object)
Data and other non-method functions defined here:
-
__dict__ = <dict-proxy object>
-
__doc__ = None
-
__new__ = <built-in method __new__ of type object>
-
class
NoneType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
class
ObjectType
Data and other non-method functions defined here:
-
__class__ = <type 'type'>
-
__doc__ = 'The most base type'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
SliceType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
start = <member 'start' of 'slice' objects>
-
step = <member 'step' of 'slice' objects>
-
stop = <member 'stop' of 'slice' objects>
-
class
StringType(
__builtin__.object)
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
capitalize(...)
-
S.capitalize() -> string
Return a copy of the string S with only its first character
capitalized.
-
center(...)
-
S.center(width) -> string
Return S centered in a string of length width. Padding is done
using spaces.
-
count(...)
-
S.count(sub[, start[, end]]) -> int
Return the number of occurrences of substring sub in string
S[start:end]. Optional arguments start and end are
interpreted as in slice notation.
-
decode(...)
-
S.decode([encoding[,errors]]) -> object
Decodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a ValueError. Other possible values are 'ignore' and 'replace'.
-
encode(...)
-
S.encode([encoding[,errors]]) -> object
Encodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a ValueError. Other possible values are 'ignore' and 'replace'.
-
endswith(...)
-
S.endswith(suffix[, start[, end]]) -> int
Return 1 if S ends with the specified suffix, otherwise return 0. With
optional start, test S beginning at that position. With optional end, stop
comparing S at that position.
-
expandtabs(...)
-
S.expandtabs([tabsize]) -> string
Return a copy of S where all tab characters are expanded using spaces.
If tabsize is not given, a tab size of 8 characters is assumed.
-
find(...)
-
S.find(sub [,start [,end]]) -> int
Return the lowest index in S where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
-
index(...)
-
S.index(sub [,start [,end]]) -> int
Like S.find() but raise ValueError when the substring is not found.
-
isalnum(...)
-
S.isalnum() -> int
Return 1 if all characters in S are alphanumeric
and there is at least one character in S, 0 otherwise.
-
isalpha(...)
-
S.isalpha() -> int
Return 1 if all characters in S are alphabetic
and there is at least one character in S, 0 otherwise.
-
isdigit(...)
-
S.isdigit() -> int
Return 1 if there are only digit characters in S,
0 otherwise.
-
islower(...)
-
S.islower() -> int
Return 1 if all cased characters in S are lowercase and there is
at least one cased character in S, 0 otherwise.
-
isspace(...)
-
S.isspace() -> int
Return 1 if there are only whitespace characters in S,
0 otherwise.
-
istitle(...)
-
S.istitle() -> int
Return 1 if S is a titlecased string, i.e. uppercase characters
may only follow uncased characters and lowercase characters only cased
ones. Return 0 otherwise.
-
isupper(...)
-
S.isupper() -> int
Return 1 if all cased characters in S are uppercase and there is
at least one cased character in S, 0 otherwise.
-
join(...)
-
S.join(sequence) -> string
Return a string which is the concatenation of the strings in the
sequence. The separator between elements is S.
-
ljust(...)
-
S.ljust(width) -> string
Return S left justified in a string of length width. Padding is
done using spaces.
-
lower(...)
-
S.lower() -> string
Return a copy of the string S converted to lowercase.
-
lstrip(...)
-
S.lstrip() -> string
Return a copy of the string S with leading whitespace removed.
-
replace(...)
-
S.replace (old, new[, maxsplit]) -> string
Return a copy of string S with all occurrences of substring
old replaced by new. If the optional argument maxsplit is
given, only the first maxsplit occurrences are replaced.
-
rfind(...)
-
S.rfind(sub [,start [,end]]) -> int
Return the highest index in S where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
-
rindex(...)
-
S.rindex(sub [,start [,end]]) -> int
Like S.rfind() but raise ValueError when the substring is not found.
-
rjust(...)
-
S.rjust(width) -> string
Return S right justified in a string of length width. Padding is
done using spaces.
-
rstrip(...)
-
S.rstrip() -> string
Return a copy of the string S with trailing whitespace removed.
-
split(...)
-
S.split([sep [,maxsplit]]) -> list of strings
Return a list of the words in the string S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified, any whitespace string
is a separator.
-
splitlines(...)
-
S.splitlines([keepends]) -> list of strings
Return a list of the lines in S, breaking at line boundaries.
Line breaks are not included in the resulting list unless keepends
is given and true.
-
startswith(...)
-
S.startswith(prefix[, start[, end]]) -> int
Return 1 if S starts with the specified prefix, otherwise return 0. With
optional start, test S beginning at that position. With optional end, stop
comparing S at that position.
-
strip(...)
-
S.strip() -> string
Return a copy of the string S with leading and trailing
whitespace removed.
-
swapcase(...)
-
S.swapcase() -> string
Return a copy of the string S with uppercase characters
converted to lowercase and vice versa.
-
title(...)
-
S.title() -> string
Return a titlecased version of S, i.e. words start with uppercase
characters, all remaining cased characters have lowercase.
-
translate(...)
-
S.translate(table [,deletechars]) -> string
Return a copy of the string S, where all characters occurring
in the optional argument deletechars are removed, and the
remaining characters have been mapped through the given
translation table, which must be a string of length 256.
-
upper(...)
-
S.upper() -> string
Return a copy of the string S converted to uppercase.
Data and other non-method functions defined here:
-
__doc__ = 'str(object) -> string\n\nReturn a nice string repr...is a string, the return value is the same object.'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
TestSuite
Data and other non-method functions defined here:
-
__doc__ = '\n A command-line program that runs a set of t...making test modules conveniently executable.\n '
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__module__ = 'Ft.Lib.TestSuite.TestSuite'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
boolean_opts = ('full', 'stop', 'nocolor', 'noreport', 'offline', 'help', 'help-tests')
-
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items
If the argument is a tuple, the return value is the same object.
-
negative_opts = {'nocolor': 'color', 'noreport': 'report', 'quiet': 'verbose'}
-
options = [('help', 'h', 'Show detailed help message'), ('help-tests', 't', 'List all available tests'), ('verbose', 'v', 'Increase display verbosity'), ('quiet', 'q', 'Decrease display verbosity'), ('mode=', 'm', 'Add mode to default modes to run'), ('skip=', 'k', 'Remove a mode from the modes to run'), ('full', 'f', 'Use all modes'), ('stop', 's', 'Stop on errors'), ('nocolor', 'n', 'Disable ANSI color sequences'), ('noreport', 'r', 'Disable report generation'), ('outfile=', 'o', 'Specify an output file for all results'), ('offline', 'l', 'Skip tests requiring internet connection')]
-
Data and other non-method functions defined here:
-
__doc__ = None
-
__module__ = 'Ft.Lib.TestSuite.Errors'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
class
TestSuiteError(
exceptions.Exception)
Data and other non-method functions defined here:
-
__doc__ = None
-
__module__ = 'Ft.Lib.TestSuite.Errors'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
Data and other non-method functions defined here:
-
__doc__ = None
-
__module__ = 'Ft.Lib.TestSuite.Errors'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
Data and other non-method functions defined here:
-
__doc__ = None
-
__module__ = 'Ft.Lib.TestSuite.Errors'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
class
TracebackType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
class
TupleType(
__builtin__.object)
-
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items
If the argument is a tuple, the return value is the same object.
Data and other non-method functions defined here:
-
__doc__ = 'tuple() -> an empty tuple\ntuple(sequence) -> tup... is a tuple, the return value is the same object.'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
TypeType(
__builtin__.object)
Data and other non-method functions defined here:
-
__base__ = <type 'object'>
-
__bases__ = (<type 'object'>,)
-
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items
If the argument is a tuple, the return value is the same object.
-
__basicsize__ = 436
-
int(x[, base]) -> integer
Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
-
__dict__ = <dict-proxy object>
-
__dictoffset__ = 132
-
int(x[, base]) -> integer
Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
-
__doc__ = "type(object) -> the object's type\ntype(name, bases, dict) -> a new type"
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__flags__ = 21995
-
int(x[, base]) -> integer
Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
-
__itemsize__ = 20
-
int(x[, base]) -> integer
Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
-
__module__ = '__builtin__'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__mro__ = (<type 'type'>, <type 'object'>)
-
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items
If the argument is a tuple, the return value is the same object.
-
__name__ = 'type'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
__weakrefoffset__ = 184
-
int(x[, base]) -> integer
Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
-
class
UnboundMethodType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
-
im_class = <member 'im_class' of 'instance method' objects>
-
im_func = <member 'im_func' of 'instance method' objects>
-
im_self = <member 'im_self' of 'instance method' objects>
-
class
UnicodeType(
__builtin__.object)
-
unicode(string [, encoding[, errors]]) -> object
Create a new Unicode object from the given encoded string.
encoding defaults to the current default string encoding and
errors, defining the error handling, to 'strict'.
-
capitalize(...)
-
S.capitalize() -> unicode
Return a capitalized version of S, i.e. make the first character
have upper case.
-
center(...)
-
S.center(width) -> unicode
Return S centered in a Unicode string of length width. Padding is done
using spaces.
-
count(...)
-
S.count(sub[, start[, end]]) -> int
Return the number of occurrences of substring sub in Unicode string
S[start:end]. Optional arguments start and end are
interpreted as in slice notation.
-
encode(...)
-
S.encode([encoding[,errors]]) -> string
Return an encoded string version of S. Default encoding is the current
default string encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a ValueError. Other possible values are 'ignore' and 'replace'.
-
endswith(...)
-
S.endswith(suffix[, start[, end]]) -> int
Return 1 if S ends with the specified suffix, otherwise return 0. With
optional start, test S beginning at that position. With optional end, stop
comparing S at that position.
-
expandtabs(...)
-
S.expandtabs([tabsize]) -> unicode
Return a copy of S where all tab characters are expanded using spaces.
If tabsize is not given, a tab size of 8 characters is assumed.
-
find(...)
-
S.find(sub [,start [,end]]) -> int
Return the lowest index in S where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
-
index(...)
-
S.index(sub [,start [,end]]) -> int
Like S.find() but raise ValueError when the substring is not found.
-
isalnum(...)
-
S.isalnum() -> int
Return 1 if all characters in S are alphanumeric
and there is at least one character in S, 0 otherwise.
-
isalpha(...)
-
S.isalpha() -> int
Return 1 if all characters in S are alphabetic
and there is at least one character in S, 0 otherwise.
-
isdecimal(...)
-
S.isdecimal() -> int
Return 1 if there are only decimal characters in S,
0 otherwise.
-
isdigit(...)
-
S.isdigit() -> int
Return 1 if there are only digit characters in S,
0 otherwise.
-
islower(...)
-
S.islower() -> int
Return 1 if all cased characters in S are lowercase and there is
at least one cased character in S, 0 otherwise.
-
isnumeric(...)
-
S.isnumeric() -> int
Return 1 if there are only numeric characters in S,
0 otherwise.
-
isspace(...)
-
S.isspace() -> int
Return 1 if there are only whitespace characters in S,
0 otherwise.
-
istitle(...)
-
S.istitle() -> int
Return 1 if S is a titlecased string, i.e. upper- and titlecase characters
may only follow uncased characters and lowercase characters only cased
ones. Return 0 otherwise.
-
isupper(...)
-
S.isupper() -> int
Return 1 if all cased characters in S are uppercase and there is
at least one cased character in S, 0 otherwise.
-
join(...)
-
S.join(sequence) -> unicode
Return a string which is the concatenation of the strings in the
sequence. The separator between elements is S.
-
ljust(...)
-
S.ljust(width) -> unicode
Return S left justified in a Unicode string of length width. Padding is
done using spaces.
-
lower(...)
-
S.lower() -> unicode
Return a copy of the string S converted to lowercase.
-
lstrip(...)
-
S.lstrip() -> unicode
Return a copy of the string S with leading whitespace removed.
-
replace(...)
-
S.replace (old, new[, maxsplit]) -> unicode
Return a copy of S with all occurrences of substring
old replaced by new. If the optional argument maxsplit is
given, only the first maxsplit occurrences are replaced.
-
rfind(...)
-
S.rfind(sub [,start [,end]]) -> int
Return the highest index in S where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
-
rindex(...)
-
S.rindex(sub [,start [,end]]) -> int
Like S.rfind() but raise ValueError when the substring is not found.
-
rjust(...)
-
S.rjust(width) -> unicode
Return S right justified in a Unicode string of length width. Padding is
done using spaces.
-
rstrip(...)
-
S.rstrip() -> unicode
Return a copy of the string S with trailing whitespace removed.
-
split(...)
-
S.split([sep [,maxsplit]]) -> list of strings
Return a list of the words in S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified, any whitespace string
is a separator.
-
splitlines(...)
-
S.splitlines([keepends]]) -> list of strings
Return a list of the lines in S, breaking at line boundaries.
Line breaks are not included in the resulting list unless keepends
is given and true.
-
startswith(...)
-
S.startswith(prefix[, start[, end]]) -> int
Return 1 if S starts with the specified prefix, otherwise return 0. With
optional start, test S beginning at that position. With optional end, stop
comparing S at that position.
-
strip(...)
-
S.strip() -> unicode
Return a copy of S with leading and trailing whitespace removed.
-
swapcase(...)
-
S.swapcase() -> unicode
Return a copy of S with uppercase characters converted to lowercase
and vice versa.
-
title(...)
-
S.title() -> unicode
Return a titlecased version of S, i.e. words start with title case
characters, all remaining cased characters have lower case.
-
translate(...)
-
S.translate(table) -> unicode
Return a copy of the string S, where all characters have been mapped
through the given translation table, which must be a mapping of
Unicode ordinals to Unicode ordinals or None. Unmapped characters
are left untouched. Characters mapped to None are deleted.
-
upper(...)
-
S.upper() -> unicode
Return a copy of S converted to uppercase.
Data and other non-method functions defined here:
-
__doc__ = "unicode(string [, encoding[, errors]]) -> object...errors, defining the error handling, to 'strict'."
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__new__ = <built-in method __new__ of type object>
-
class
XRangeType(
__builtin__.object)
Data and other non-method functions defined here:
-
__doc__ = None
Data
-
StringTypes = (<type 'str'>, <type 'unicode'>)
-
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items
If the argument is a tuple, the return value is the same object.
-
USAGE = "Usage:\n %(script)s [options] [test] [...]\n %(s...p)sfile run just 'file' from 'directory'\n"
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__file__ = 'build/lib.linux-i686-2.2/Ft/Lib/TestSuite/TestSuite.py'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__name__ = 'Ft.Lib.TestSuite.TestSuite'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
-
__revision__ = '$Id: TestSuite.py,v 1.12 2002/12/19 20:31:13 jkloth Exp $'
-
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.