original_docstring: Tests if csv files a and b are 'almost equal' to each other on a per
      cell basis.  Numeric cells are asserted to be equal out to 7 decimal
      places.  Other cell types are asserted to be equal.
  
      Args:
          aUri (string): a URI to a csv file
          bUri (string): a URI to a csv file
  
      Raises:
          AssertionError: Raised when the two CSV files are found to be\
          different.
  
      Returns:
          Nothing.
      
docstring: Tests if csv files a and b are 'almost equal' to each other on a per
  cell basis.  Numeric cells are asserted to be equal out to 7 decimal
  places.  Other cell types are asserted to be equal.
  
  aUri (string): a URI to a csv file
  bUri (string): a URI to a csv file
  
  Raised when the two CSV files are found to be\
  different.
  
  Nothing.
docstring_tokens: Tests if csv files a and b are ' almost equal ' to each other on a per cell basis . Numeric cells are asserted to be equal out to 7 decimal places . Other cell types are asserted to be equal . aUri ( string ) : a URI to a csv file bUri ( string ) : a URI to a csv file Raised when the two CSV files are found to be \ different . Nothing .
code: def assert_csv_equal(aUri, bUri):
      """Tests if csv files a and b are 'almost equal' to each other on a per
      cell basis.  Numeric cells are asserted to be equal out to 7 decimal
      places.  Other cell types are asserted to be equal.
  
      Args:
          aUri (string): a URI to a csv file
          bUri (string): a URI to a csv file
  
      Raises:
          AssertionError: Raised when the two CSV files are found to be\
          different.
  
      Returns:
          Nothing.
      """
  
      a = open(aUri)
      b = open(bUri)
  
      reader_a = csv.reader(a)
      reader_b = csv.reader(b)
  
      for index, (a_row, b_row) in enumerate(zip(reader_a, reader_b)):
          try:
              assert_equal(a_row, b_row,
                  'Rows differ at row %s: a=%s b=%s' % (index, a_row, b_row))
          except AssertionError:
              for col_index, (a_element, b_element) in enumerate(zip(a_row, b_row)):
                  try:
                      a_element = float(a_element)
                      b_element = float(b_element)
                      assert_almost_equal(a_element, b_element,
                          msg=('Values are significantly different at row %s col %s:'
                              ' a=%s b=%s' % (index, col_index, a_element,
                              b_element)))
                  except ValueError:
                      # we know for sure they arenot floats, so compare as
                      # non-floats.
                      assert_equal(a_element, b_element,
                          msg=('Elements differ at row %s col%s: a=%s b=%s' %
                          (index, col_index, a_element, b_element)))
code_tokens: def assert_csv_equal ( aUri , bUri ) : a = open ( aUri ) b = open ( bUri ) reader_a = csv . reader ( a ) reader_b = csv . reader ( b ) for index , ( a_row , b_row ) in enumerate ( zip ( reader_a , reader_b ) ) : try : assert_equal ( a_row , b_row , 'Rows differ at row %s: a=%s b=%s' % ( index , a_row , b_row ) ) except AssertionError : for col_index , ( a_element , b_element ) in enumerate ( zip ( a_row , b_row ) ) : try : a_element = float ( a_element ) b_element = float ( b_element ) assert_almost_equal ( a_element , b_element , msg = ( 'Values are significantly different at row %s col %s:' ' a=%s b=%s' % ( index , col_index , a_element , b_element ) ) ) except ValueError : assert_equal ( a_element , b_element , msg = ( 'Elements differ at row %s col%s: a=%s b=%s' % ( index , col_index , a_element , b_element ) ) )
short_docstring: Tests if csv files a and b are 'almost equal' to each other on a per
  cell basis.
short_docstring_tokens: Tests if csv files a and b are ' almost equal ' to each other on a per cell basis .
comment: """Tests if csv files a and b are 'almost equal' to each other on a per
      cell basis.  Numeric cells are asserted to be equal out to 7 decimal
      places.  Other cell types are asserted to be equal.
  
      Args:
          aUri (string): a URI to a csv file
          bUri (string): a URI to a csv file
  
      Raises:
          AssertionError: Raised when the two CSV files are found to be\
          different.
  
      Returns:
          Nothing.
      """$SEP$# we know for sure they arenot floats, so compare as$SEP$# non-floats.