Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are Python's stdlib tests?

Tags:

python

testing

Say I wrote a class that resembles a dict. I want it to pass the same unit test the standard dict passes, with maybe some modifications.

Where can I find that code?

like image 955
slezica Avatar asked Apr 07 '13 23:04

slezica


1 Answers

Python tests are included with the python source, in Lib/test:

http://hg.python.org/releasing/2.7.4/file/9290822f2280/Lib/test/test_dict.py http://hg.python.org/releasing/3.3.1/file/8e5812b35480/Lib/test/test_dict.py

like image 165
Pavel Anossov Avatar answered Sep 22 '22 14:09

Pavel Anossov