'Check that the given UnwrappedLines match expectations.
Args:
uwlines: list of UnwrappedLine
list_of_expected: list of (depth, values) pairs. Non-semantic tokens are
filtered out from the expected values.'

def _CheckUnwrappedLines(self, uwlines, list_of_expected):

    actual = []
    for uwl in uwlines:
        filtered_values = [ft.value for ft in uwl.tokens if (ft.name not in pytree_utils.NONSEMANTIC_TOKENS)]
        actual.append((uwl.depth, filtered_values))
    self.assertEqual(list_of_expected, actual)
