unit-test: Switch to python3

The change was generated using 2to3-2.7 and then tweaked to fix the
string encoding/decoding.

Change-Id: Iabeb7dc1ef4edf6ada710de752b19b5a71c6187c
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
1 file changed