def test_10_elem_to_container__None(self): self.assertEqual(TT.elem_to_container(None), dict())
def _xml_to_container(snippet, **opts): return TT.elem_to_container(TT.ET.XML(snippet), to_container=dict, **opts)
def _assert_eq_dic_from_snippet(self, snippet, ref, **opts): self.assertEqual(TT.elem_to_container(TT.ET.XML(snippet), **opts), ref)