unittest basics

Giampaolo Rodolà g.rodola at gmail.com
Tue May 11 08:03:58 EDT 2010


There's no reason for such a thing.
You can just make "import module" in your test and if something goes
wrong that will be treated as any other test failure.

--- Giampaolo
http://code.google.com/p/pyftpdlib
http://code.google.com/p/psutil


2010/5/11 John Maclean <jayeola at gmail.com>:
> is there a way to test that a certian library or module is or can be loaded
> successfully?
>
> self.assert('import blah')
>
> --
> John Maclean
> MSc. (DIC) BSc. (Hons)
> Linux Systems and Applications
> 07739 171 531
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list