docstr: Checks that the given strings or lists of strings are equal line by line
docstr_tok: ["Checks","that","the","given","strings","or","lists","of","strings","are","equal","line","by","line"]
code: def assertLines(self, expected, result):
      "Checks that the given strings or lists of strings are equal line by line"
      if not isinstance(expected, list):
          expected = expected.split("\n")
      if not isinstance(result, list):
          result = result.split("\n")
      for idx, (expected_line, result_line) in enumerate(
          zip(expected, result)
      ):
          self.assertEqual(
              expected_line,
              result_line,
              "Line %d:\nExp: %s\nGot: %s"
              % (idx, expected_line, result_line),
          )
      self.assertEqual(
          len(expected),
          len(result),
          "Unmatched lines. Got:\n%s\nExpected:\n%s"
          % ("\n".join(expected), "\n".join(result)),
      )
  
imports: from __future__ import absolute_import
  import os
  import unittest
  import tempfile
  from .Compiler import Errors
  from .CodeWriter import CodeWriter
  from .Compiler.TreeFragment import TreeFragment, strip_common_indent
  from .Compiler.Visitor import TreeVisitor, VisitorTransform
  from .Compiler import TreePath
label_desc: Use image node_id 3 for calling the CythonTest obj's underlying member method code with example usage: obj.assertLines(expected, result) without return types