* start testing class type

This commit is contained in:
Eray Özkural
2005-09-28 12:46:50 +00:00
parent c1db8c161d
commit d3183db4ef
+2 -2
View File
@@ -32,7 +32,7 @@ class XmlFileTestCase(unittest.TestCase):
__metaclass__ = xmlfile.autoxml __metaclass__ = xmlfile.autoxml
t_BirthDate = [types.StringType, xmlfile.mandatory] t_BirthDate = [types.StringType, xmlfile.mandatory]
t_Interest = [types.StringType, xmlfile.optional] t_Interest = [types.StringType, xmlfile.optional]
t_CodesWith = [ [types.StringType], xmlfile.optional, 'Person'] #t_CodesWith = [ [types.StringType], xmlfile.optional, 'Person']
class A: class A:
__metaclass__ = xmlfile.autoxml __metaclass__ = xmlfile.autoxml
@@ -41,7 +41,7 @@ class XmlFileTestCase(unittest.TestCase):
t_Email = [types.StringType, xmlfile.optional] t_Email = [types.StringType, xmlfile.optional]
a_href = [types.StringType, xmlfile.mandatory] a_href = [types.StringType, xmlfile.mandatory]
#t_Projects = [ [types.StringType], xmlfile.mandatory, 'Project'] #t_Projects = [ [types.StringType], xmlfile.mandatory, 'Project']
#t_OtherInfo = [ OtherInfo, xmlfile.optional ] t_OtherInfo = [ OtherInfo, xmlfile.optional ]
a = A() a = A()
self.assertEqual(a.href, None) self.assertEqual(a.href, None)