Example #1
0
 def assert_expansion_sequence_equal(self, expected, expansion):
     """
     Takes a list of expected expansions and an expansion to be tested.
     :type expected: list
     :type expansion: Expansion
     """
     actual_expansions = calculate_expansion_sequence(expansion)
     self.assertListEqual(expected, actual_expansions)
Example #2
0
 def test_no_dictation(self):
     seq = calculate_expansion_sequence(Literal("hello"))
     self.assertListEqual(seq, [Literal("hello")])