def METHOD_NAME(self):
    """
    Tests set_static_all with dns provided
    """
    save_config_mock = MagicMock(return_value=None)
    with patch.dict(nilrt_ip.__grains__, {"lsb_distrib_id": "nilrt"}):
        with patch.object(
            nilrt_ip, "_get_adapter_mode_info", MagicMock(return_value="TCPIP")
        ):
            with patch.object(nilrt_ip, "_save_config", save_config_mock):
                with patch.object(
                    nilrt_ip, "_restart", MagicMock(return_value=None)
                ):
                    self.assertEqual(
                        True,
                        nilrt_ip.set_static_all(
                            "eth0",
                            "192.168.10.4",
                            "255.255.255.0",
                            "192.168.10.1",
                            "8.8.4.4 8.8.8.8",
                        ),
                    )
                    mock_call = mock.call("eth0", "DNS_Address", "8.8.4.4")
                    self.assertEqual(True, mock_call in save_config_mock.mock_calls)