Added git repository helper class and created tests for it using py.test.