def testnilproperty(self): prop = self.doc.getElementsByTagName('Property')[1] self.assertEqual(prop.getAttribute('type'), 'none') self.assertEqual(prop.getAttribute('xsi:nil'), 'true') self.assertTrue(_get_text(prop) is None)
def testproperty(self): prop = self.doc.getElementsByTagName('Property')[0] self.assertEqual(prop.getAttribute('type'), 'mimetype') self.assertEqual(_get_text(prop), 'text/plain')