Convert network tests to httpretty

Change-Id: I81a83c98b925a2bc7373dd17f2c2ecd78fa23a6d
blueprint: httpretty-testing
Merge "Convert network tests to httpretty"