Exemplo n.º 1
0
 def test_minimal_sequence_visualize_tree(self):
     s = Sequence.from_file(testpath +
                            "/test_sequences/minimal_sequence.xml")
     s.resolve_references()
     tree = _Sequence_verification.Tree(sequence=s, control_values={})
     tree.build()
     tree.visualize()
Exemplo n.º 2
0
 def test_detect_when_sequence_has_infinite_subloop(self):
     s = Sequence.from_file(
         testpath + "/test_sequences/minimal_sequence_with_subloop.xml")
     s.resolve_references()
     tree = _Sequence_verification.Tree(sequence=s, control_values={})
     with self.assertRaises(InvalidSequenceException):
         tree.build()
     tree.visualize()
Exemplo n.º 3
0
 def test_detect_when_sequence_never_terminates_at_all(self):
     s = Sequence.from_file(
         testpath + "/test_sequences/minimal_sequence_with_loop.xml")
     s.resolve_references()
     tree = _Sequence_verification.Tree(sequence=s, control_values={})
     tree.build()
     tree.visualize()
     with self.assertRaises(InvalidSequenceException):
         tree.check()
Exemplo n.º 4
0
 def test_minimal_sequence_written_file_loads(self):
     s = Sequence.from_file(testpath +
                            "/test_sequences/minimal_sequence.xml")
     s.save_XML(testpath + "/test_sequences/minimal_sequence_saved.xml")
     t = Sequence.from_file(testpath +
                            "/test_sequences/minimal_sequence_saved.xml")
Exemplo n.º 5
0
 def test_minimal_sequence_writes_to_file(self):
     s = Sequence.from_file(testpath +
                            "/test_sequences/minimal_sequence.xml")
     s.save_XML(testpath + "test_sequences/minimal_sequence_saved.xml")
Exemplo n.º 6
0
 def test_minimal_sequence_export_imports_again(self):
     s = Sequence.from_file(testpath +
                            "/test_sequences/minimal_sequence.xml")
     t = Sequence.from_XML(s.XML)
Exemplo n.º 7
0
 def test_minimal_sequence_exports(self):
     s = Sequence.from_file(testpath +
                            "/test_sequences/minimal_sequence.xml")
     XML = s.XML
Exemplo n.º 8
0
 def test_minimal_sequence_loads(self):
     s = Sequence.from_file(testpath +
                            "/test_sequences/minimal_sequence.xml")