unittest unpythonic? [Was: Re: Tidying up]
Magnus Therning
magnus at therning.org
Fri Apr 15 11:42:34 BST 2005
On Fri, Apr 15, 2005 at 11:54:48AM +0200, Fredrik Lundh wrote:
>Magnus Therning wrote:
>
>> >I think unittest is rather ugly and unpythonic, so I don't know if I'd
>> >really switch to that, but some tests in regular Python should be added.
>>
>> This is a bit off-topic, but I'm a curious soul. Feel free to take sthis
>> off the mailing list if you want to.
>>
>> As I'm not a very experienced Python programmer I'm wondering what makes
>> you say unittest is "unpythonic"?
>
>have you used doctest?
Nope, not yet. I actually didn't even know it existed. I've used
unittest to some extent. I guess I went jUnit (mentioned in books on
TDD) -> PyUnit -> unittest, and then I stopped.
I've started looking at doctest, and I can see how it helps in putting
together unit tests. I also saw that they can work together (still have
to work through the details of that though).
If you by your question is suggesting that doctest is more pythonic than
unittest, then I'd like an explanation to that as well ;-)
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://magnus.therning.org/
Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.
Who is General Failure, and why is he reading my hard drive?
-- Bob (on Slashdot)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050415/c81a0a1d/attachment.pgp
More information about the bazaar
mailing list