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")
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'))
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'))