* start testing class type
This commit is contained in:
@@ -32,7 +32,7 @@ class XmlFileTestCase(unittest.TestCase):
|
||||
__metaclass__ = xmlfile.autoxml
|
||||
t_BirthDate = [types.StringType, xmlfile.mandatory]
|
||||
t_Interest = [types.StringType, xmlfile.optional]
|
||||
t_CodesWith = [ [types.StringType], xmlfile.optional, 'Person']
|
||||
#t_CodesWith = [ [types.StringType], xmlfile.optional, 'Person']
|
||||
|
||||
class A:
|
||||
__metaclass__ = xmlfile.autoxml
|
||||
@@ -41,7 +41,7 @@ class XmlFileTestCase(unittest.TestCase):
|
||||
t_Email = [types.StringType, xmlfile.optional]
|
||||
a_href = [types.StringType, xmlfile.mandatory]
|
||||
#t_Projects = [ [types.StringType], xmlfile.mandatory, 'Project']
|
||||
#t_OtherInfo = [ OtherInfo, xmlfile.optional ]
|
||||
t_OtherInfo = [ OtherInfo, xmlfile.optional ]
|
||||
|
||||
a = A()
|
||||
self.assertEqual(a.href, None)
|
||||
|
||||
Reference in New Issue
Block a user