If you need to restart or power off your RPi remotely (or through local application’s call) here’s a simple way
http://raspberry.address:7000/reboot http://raspberry.address:7000/power/off
Details and code at https://github.com/zdanek/raspiPowerServer
Couple of years ago I wasn't a big fan of unit testing. It was obvious to me that well prepared unit tests are crucial though. I didn't known why exactly crucial yet then. I just felt they are important. My disliking to write automation tests was mostly related to the effort necessary to prepare them. Also a spaghetti code was easily spotted in test sources.
