Popular recipes by Senthil Kumaran http://code.activestate.com/recipes/users/4165833/2009-02-18T23:24:31-08:00ActiveState Code Recipesunittest howto - practical demonstration of the various unittest methods (Python)
2009-02-18T23:24:31-08:00Senthil Kumaranhttp://code.activestate.com/recipes/users/4165833/http://code.activestate.com/recipes/576654-unittest-howto-practical-demonstration-of-the-vari/
<p style="color: grey">
Python
recipe 576654
by <a href="/recipes/users/4165833/">Senthil Kumaran</a>
(<a href="/recipes/tags/unittests/">unittests</a>).
</p>
<p>There is a good amount of unittest documentation, for the beginner the way different people have written unittest can be confusing. Here is my attempt to dispel the confusion. There are sets of many methods which does the same thing, use the one which you and your teammates can understand the best and use it consistently. </p>
Remove the .pyc files from current directory tree and from svn (Python)
2009-02-03T23:38:43-08:00Senthil Kumaranhttp://code.activestate.com/recipes/users/4165833/http://code.activestate.com/recipes/576641-remove-the-pyc-files-from-current-directory-tree-a/
<p style="color: grey">
Python
recipe 576641
by <a href="/recipes/users/4165833/">Senthil Kumaran</a>
(<a href="/recipes/tags/parsing/">parsing</a>).
</p>
<p>I had mistakenly checked in .pyc files into svn, So I took this approach of deleting all the .pyc files in the current working copy directory tree and then using svn remove to the remove from the repository. The following is the snippet I wrote then to for the purpose.</p>
Copy directory tree recursively while ignoring cvs, git and svn directories (Python)
2008-12-18T21:36:12-08:00Senthil Kumaranhttp://code.activestate.com/recipes/users/4165833/http://code.activestate.com/recipes/576588-copy-directory-tree-recursively-while-ignoring-cvs/
<p style="color: grey">
Python
recipe 576588
by <a href="/recipes/users/4165833/">Senthil Kumaran</a>
(<a href="/recipes/tags/parsing/">parsing</a>).
</p>
<p>I wanted to do a conditional copy of a directory tree.
Noticed a ignore parameter introduced in Python 2.6. Thats very handy. This snippet gives the example of its usage.</p>