Add unit test for print_hostnames of inventory.py (#8558)
Add unit test for print_hostnames of inventory.py (#8558)

This adds a unit test for the function.
Atoms/kubespray,Atoms/kubespray,kubernetes-sigs/kubespray,kubernetes-sigs/kubespray,Atoms/kubespray,kubernetes-sigs/kubespray,Atoms/kubespray,kubernetes-sigs/kubespray