def test_get_ip(self):
     # Tests get_ip function; This test may not work if it returns an IPV6.
     ip = util.get_ip()
     try:
         socket.inet_aton(ip)
     except Exception:
         self.fail("Failed to get a valid IP Address")
 def test_get_ov_ip(self, mock_config):
     # Tests get_ip function; This test may not work if it returns an IPV6.
     mock_config.return_Value = {"oneview_config": {"ip": "1.1.1.1"}}
     ip = util.get_ip()
     try:
         socket.inet_aton(ip)
     except Exception:
         self.fail("Failed to get a valid IP Address")