Edit to add: I know why this sounded familiar! I had forgotten I wrote about it recently:
http://www.modernperlbooks.com/mt/2012/08/why-i-use-perl-tes...
Do you really know about this?
I've done a bit of Python lately. The infrastructure isn't close (see e.g. Perl Testers, chromatic had a blog post about it quite recently). Also, CPAN is much richer than pypi.
Another difference: In the Perl world, you can find and have dependency trees with dozens to hundreds of modules installed from cpan -- and you expect it to work, particularly since the module tests by default are run at install. (It is a bit painful with too many dependencies, but it works if you need it.)
http://wiki.python.org/moin/PythonTestingToolsTaxonomy
Also, as far as SQL, and even Object Relational Mappers goes, there's SQL Alchemy.
You can verify they are present here, in PyPi: http://pypi.python.org/pypi
See http://search.cpan.org/~rehsack/SQL-Statement/
It contains a parser and evaluates SQL expressions on lots of data sources(!).
The testing tools on Perl use a common infrastructure and can work with each others in a plugin fashion.
See this comment on an old Perl thread for some pointers