[TIP] testing for sysadmins who know bash advice

Grig Gheorghiu grig at gheorghiu.net
Tue Jan 8 11:29:59 PST 2008

Good luck with that. In my experience, sysadmins don't really test
their stuff. I find more and more the need for automated tests for any
non-trivial sysadmin script/task though, so I think you're on the right
track. But it won't be easy :-) 

I don't think I'd use doctest though. A lot of sysadmin scripts touch
the file system, so doctest will have problems because you can't expect
a certain precise output. I'd use either nose or py.test.


--- Noah Gift <noah.gift at gmail.com> wrote:

> I am starting to spread the word about Python to many bash  
> programmers, both by writing articles, in the book I am writing that 
> is geared toward sysadmins, and finally in person one on one.  Any  
> suggestions on how to tackle the challenging problem of explaining  
> python and teaching that testing is a good thing?  I find this to be 
> reasonably complex, as python is foreign enough, but that last thing
> I  
> want to do is turn someone off from Python forever, by getting to  
> heavy handed with testing.  I suppose I like explaining doctest best 
> so far, as it is so intuitive, and makes sense to a bash programmer.
> Noah
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

More information about the testing-in-python mailing list