PyDocs

Nav

Development Tools

TestCase.assertSequenceEqual

unittest

method of TestCase · Added in 3.1 (source)
  • TestCase.assertSequenceEqual(first, second, msg=None, seq_type=None)
An equality assertion for ordered sequences (like lists and tuples).

For the purposes of this function, a valid ordered sequence type is one
which can be indexed, has a length, and has an equality operator.

Args:
    seq1: The first sequence to compare.
    seq2: The second sequence to compare.
    seq_type: The expected datatype of the sequences, or None if no
            datatype should be enforced.
    msg: Optional message to use on failure instead of a list of
            differences.
0 Examples
No examples for unittest/TestCase.assertSequenceEqual.
See Also
No see-alsos for unittest/TestCase.assertSequenceEqual
0 Notes
No notes for TestCase.assertSequenceEqual