Use shunit2 for adding some unit tests to cover the functionality of `_generate_hosts_content` and `netinfo_to_resolv_conf`. Signed-off-by: Benjamin Drung <bdrung@debian.org>