An Introduction to Mocking in Python

Recently I came across a nice article written by Naftuli, a freelancer at totpal describing the need of writing mocks to test your services.  The blog clearly explains how to develop mocks and stubs using mock library introduced in Python 3.3 (http://www.python.org/dev/peps/pep-0417/). Advantages of using this approach for testing are enormous. You can read more about it on … Continue reading An Introduction to Mocking in Python

Tornado Internals

Well, what a piece of technology and every time you read more about it the better you know about it and can better appreciate it. Yes, I'm talking about the very own Tornado Web Server. My 'attempt' here is to tell you about the workflow of Tornado internals... Tornado is a non blocking web server … Continue reading Tornado Internals

Selenium with Python bindings

After a lot of posts on Tornado web server and understanding BDD, lets get to testing our website. What better than to you selenium. Lets go through the setup and create our first test.. Prerequisites 1. Python bindings for Selenium - Go to, selenium site and download the package Install as: tar xvf selenium-2.25.0.tar.gz cd … Continue reading Selenium with Python bindings

BDD in Python with lettuce

Behavior Driven Development, also known as BDD, is a concept developed by Dan North and is based on a popular and well adopted TDD. As in Dan's words - 'BDD is a second-generation, outside–in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, … Continue reading BDD in Python with lettuce