How to assert two list contain the same elements in Python?

Publicado em: 07 Março 2023
no canal de: The Python Oracle
8
0

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Question
00:49 Accepted answer (Score 249)
02:10 Answer 2 (Score 60)
02:41 Answer 3 (Score 39)
03:21 Answer 4 (Score 20)
04:06 Thank you

--

Full question
https://stackoverflow.com/questions/1...

Question links:
[TestCase.assertItemsEqual]: http://docs.python.org/library/unitte...
[unittest2]: http://pypi.python.org/pypi/unittest2

Accepted answer links:
[doc]: https://docs.python.org/2/library/uni...
[doc]: https://docs.python.org/3.2/library/u...
[standard library documentation]: https://docs.python.org/3.2/library/u...

Answer 3 links:
[In Python ]: http://docs.python.org/3/library/unit...
[In Python ]: http://docs.python.org/library/unitte...
[In Python ]: https://pypi.python.org/pypi/unittest2
[Via ]: https://six.readthedocs.io/#six.asser...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/l...

--

Tags
#python #unittesting

#avk47


Nesta página do site você pode assistir ao vídeo on-line How to assert two list contain the same elements in Python? duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário The Python Oracle 07 Março 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 8 vezes e gostou 0 espectadores. Boa visualização!