919155 - Added handling for connection refused errors
919155 - Added better test assertions
Fixed incorrect whitespace
Merge pull request #386 from pulp/jdob-919155

919155 - Handle connection refused errors