Add unit tests for the generators module.

Using py.test and httpretty (to simulate the http requests).
Travis config