Exemple #1
0
 def test_10_elem_to_container__None(self):
     self.assertEqual(TT.elem_to_container(None), dict())
Exemple #2
0
def _xml_to_container(snippet, **opts):
    return TT.elem_to_container(TT.ET.XML(snippet), to_container=dict, **opts)
Exemple #3
0
 def test_10_elem_to_container__None(self):
     self.assertEqual(TT.elem_to_container(None), dict())
 def _assert_eq_dic_from_snippet(self, snippet, ref, **opts):
     self.assertEqual(TT.elem_to_container(TT.ET.XML(snippet), **opts), ref)
Exemple #5
0
 def _assert_eq_dic_from_snippet(self, snippet, ref, **opts):
     self.assertEqual(TT.elem_to_container(TT.ET.XML(snippet), **opts), ref)