Beispiel #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'))
Beispiel #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'))
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)