Use yaml.safe_load() instead of yaml.load()

* Use yaml.safe_load() instead of yaml.load() as recommended by pyyaml documentation in order to avoid the execution of untrusted code.

* Add tests for load_config() function from watchmedo module.
2 files changed