def test_extract_not_found(self): xml = ET.fromstring("<text>test</text>") result = CategoryReadOnlyStore.extract_content("other", xml) self.assertEquals(None, result)
def test_extract_content(self): xml = ET.fromstring("<text>test</text>") result = CategoryReadOnlyStore.extract_content("text", xml) self.assertEquals("test", result)