Fix the test case, make sure it tests the correct branch.
Set all MockHttpType.type attributes to None in setUp.
Refactor Rackspace tests and remove duplicated code.