[TIP] Unittest Changes

tarjei tarjei at nu.no
Mon Jul 21 02:21:52 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
> 
> Any other good ideas about ways that unittest could change that don't 
> either grow the API greatly or break backwards compatibility?

Take a look at twisted's trial. They got two things I miss in unittest:
- - the ability to only run a subset of tests based on path
trial module.tests
vs
trial module.tests.test_module.TestSomeClass.testMethod

- - assertIsInstance(var, Class)  is also a very useful addition.

kind regards,
Tarjei

> 
> Michael Foord
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIhFUwYVRKCnSvzfIRAvG9AKC+lOfo+PIkl7k0pCyK3kyYNDbnbwCghXgY
I+88JQk5ZWtJ6nbwD6Wc/x0=
=XK+p
-----END PGP SIGNATURE-----



More information about the testing-in-python mailing list