Remove duplicate resp code by creating a generic "get_resp" funciton.
Merge pull request #26 from mozilla/mock_resp

Remove duplicate resp code in unit tests by creating a generic "get_resp" funciton.