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

Publié le: 07 mars 2023
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne How to assert two list contain the same elements in Python? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur The Python Oracle 07 mars 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 8 fois et il a aimé 0 téléspectateurs. Bon visionnage!