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