'Check that the given UnwrappedLines are joined as expected.
Arguments:
code: The code to check to see if we can join it.
join_lines: True if we expect the lines to be joined.'

def _CheckLineJoining(self, code, join_lines):

    uwlines = yapf_test_helper.ParseAndUnwrap(code)
    self.assertCodeEqual(line_joiner.CanMergeMultipleLines(uwlines), join_lines)
