def test_default_val(self): self.assertEquals(None, parse.xval(ET.XML(u"<foo />"), "bar", None))
def test_default_val(self): self.assertEquals( None, parse.xval(ET.XML(u"<foo />"), "bar", None))
def test_missing_val(self): with self.assertRaises(parse.MissingValue): parse.xval(ET.XML(u"<foo />"), "bar")