tools: Refactored test.py
Refactored test.py according to PEP8 guidelines.
Fixes: https://github.com/nodejs/node/issues/16342
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines