parameters: (self, actual_seq)
return_statement: return expected == actual
docstring: Check to see whether actual_seq has same elements as expected_seq.
  
      Args:
        actual_seq: sequence
  
      Returns:
        bool
docstring_summary: Check to see whether actual_seq has same elements as expected_seq.
docstring_tokens: Check to see whether actual_seq has same elements as expected_seq .
function: def equals(self, actual_seq):
      """Check to see whether actual_seq has same elements as expected_seq.
  
      Args:
        actual_seq: sequence
  
      Returns:
        bool
      """
  
      try:
        expected = dict([(element, None) for element in self._expected_seq])
        actual = dict([(element, None) for element in actual_seq])
      except TypeError:
        # Fall back to slower list-compare if any of the objects are unhashable.
        expected = list(self._expected_seq)
        actual = list(actual_seq)
        expected.sort()
        actual.sort()
      return expected == actual
function_tokens: def equals ( self , actual_seq ) : try : expected = dict ( [ ( element , None ) for element in self . _expected_seq ] ) actual = dict ( [ ( element , None ) for element in actual_seq ] ) except TypeError : # Fall back to slower list-compare if any of the objects are unhashable. expected = list ( self . _expected_seq ) actual = list ( actual_seq ) expected . sort ( ) actual . sort ( ) return expected == actual