adapt tests to reflect reality
adapt tests to reflect reality

When CherryPy run with python3 it reads "bytes" from the wire.
In case of python2 BytesIO == StringIO, so nothing should change.

This change will do the same to make unit tests reflect reality.

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt