예제 #1
0
def test_rm_dns():
    """
    Test if it remove the DNS server from the network interface.
    """
    with patch.dict(win_dns_client.__salt__,
                    {"cmd.retcode": MagicMock(return_value=0)}):
        assert win_dns_client.rm_dns("10.1.1.10")
예제 #2
0
 def test_rm_dns(self):
     '''
     Test if it remove the DNS server from the network interface.
     '''
     with patch.dict(win_dns_client.__salt__,
                     {'cmd.retcode': MagicMock(return_value=0)}):
         self.assertTrue(win_dns_client.rm_dns('10.1.1.10'))
예제 #3
0
 def test_rm_dns(self):
     '''
     Test if it remove the DNS server from the network interface.
     '''
     with patch.dict(win_dns_client.__salt__,
                     {'cmd.retcode': MagicMock(return_value=0)}):
         self.assertTrue(win_dns_client.rm_dns('10.1.1.10'))