Esempio n. 1
0
 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'))
Esempio n. 2
0
 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'))
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 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)
Esempio n. 6
0
 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)