New test system based on doctest and unittest and many more.
This commit is contained in:
parent
53a945e78c
commit
546caa485d
21 changed files with 312 additions and 144 deletions
|
@ -13,6 +13,9 @@ mimeTypes = {'odt': 'application/vnd.oasis.opendocument.text',
|
|||
class UnmarshalledObject:
|
||||
'''Used for producing objects from a marshalled Python object (in some files
|
||||
like a CSV file or an XML file).'''
|
||||
def __init__(self, **fields):
|
||||
for k, v in fields.iteritems():
|
||||
setattr(self, k, v)
|
||||
def __repr__(self):
|
||||
res = u'<PythonObject '
|
||||
for attrName, attrValue in self.__dict__.iteritems():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue