def test_name_from_tag(self): name = Base.name_from_tag('userNameTest') self.assertEquals(name, 'user_name_test') name = Base.name_from_tag('dateCreated') self.assertEquals(name, 'date_created') name = Base.name_from_tag('id') self.assertEquals(name, 'id')
def test_from_xml(self): xml = ElementTree.XML(PALETTE_XML) base = Base.from_xml(xml)