def __init__(self, *args, **kwargs): super(ParserTests, self).__init__(*args, **kwargs) Config("", "-m", "test") self.passage = convert.from_standard(TestUtil.load_xml('test_files/standard3.xml'))
def __init__(self, *args, **kwargs): super(ParserTests, self).__init__(*args, **kwargs) Config("", "-m", "test") self.passage = convert.from_standard( TestUtil.load_xml('test_files/standard3.xml'))
def test_extract_head(self): """Tests that the API isn't broken, not validity of the result.""" passage = TestUtil.create_passage() for x in scenes.extract_possible_scenes(passage): scenes.extract_head(x)
def test_possible_scenes(self): """Tests that the API isn't broken, not validity of the result.""" elem = TestUtil.load_xml('test_files/site3.xml') passage = convert.from_site(elem) scenes.extract_possible_scenes(passage)