Пример #1
0
def test_dns_dhcp():
    """
    Test if it configure the interface to get its
    DNS servers from the DHCP server
    """
    with patch.dict(win_dns_client.__salt__,
                    {"cmd.retcode": MagicMock(return_value=0)}):
        assert win_dns_client.dns_dhcp()
Пример #2
0
 def test_dns_dhcp(self):
     '''
     Test if it configure the interface to get its
     DNS servers from the DHCP server
     '''
     with patch.dict(win_dns_client.__salt__,
                     {'cmd.retcode': MagicMock(return_value=0)}):
         self.assertTrue(win_dns_client.dns_dhcp())
Пример #3
0
 def test_dns_dhcp(self):
     '''
     Test if it configure the interface to get its
     DNS servers from the DHCP server
     '''
     with patch.dict(win_dns_client.__salt__,
                     {'cmd.retcode': MagicMock(return_value=0)}):
         self.assertTrue(win_dns_client.dns_dhcp())