Minor changes in the test system; XmlUnmarshaller can unmarshall XML content from a string, file handler of file path; any Appy object now has a method 'getField(name)' that returns a given field (=Appy type); bugfix while counting number of tests found in a gen-application.

This commit is contained in:
Gaetan Delannay 2011-02-17 18:13:42 +01:00
parent 2c6392aa92
commit a8366379dd
5 changed files with 23 additions and 8 deletions

View file

@ -182,7 +182,8 @@ class Generator:
for name, elem in moduleOrClass.__dict__.iteritems():
if type(elem) in (staticmethod, classmethod):
elem = elem.__get__(name)
if hasattr(elem, '__doc__') and elem.__doc__ and \
if callable(elem) and (type(elem) != types.ClassType) and \
hasattr(elem, '__doc__') and elem.__doc__ and \
(elem.__doc__.find('>>>') != -1):
res = True
self.totalNumberOfTests += 1