adding test for host that needs rebooting, explicitly setting the reboot_required attribute in tests
splitting lines for flake8 conformity
adding integration test for machine rebooting / polling