Chef without Chef server

There are couple alternatives available if you wish to use Chef in your infrastructure, but don’t have budget to setup hosted Chef service. So far I’ve seen one based on Git and another based on AWS S3.

Doctest in Python

My Assets on Octopress script needed couple modifications and I felt that it was good platform for doing unit tests. Python has nice test framework called doctest, which allows you to insert unit test cases as comments in your python code. My current tests are done for methods that don’t recover mockups (for things like file system access) and simply return strings, lists and such to caller. In following example, I have method called _extract_from_markdown, which gets one line of text from markdown file as string.