Exemplo n.º 1
0
 def test_parse_zone(self):
     with patch('salt.utils.fopen', mock_open(read_data=mock_soa_zone)):
         print mock_soa_zone
         print dnsutil.parse_zone('/var/lib/named/example.com.zone')
Exemplo n.º 2
0
 def test_parse_zone(self):
     with patch('salt.utils.files.fopen',
                mock_open(read_data=mock_soa_zone)):
         log.debug(mock_soa_zone)
         log.debug(dnsutil.parse_zone('/var/lib/named/example.com.zone'))
Exemplo n.º 3
0
 def test_parse_zone(self):
     with patch('salt.utils.fopen', mock_open(read_data=mock_soa_zone)):
         print mock_soa_zone
         print dnsutil.parse_zone('/var/lib/named/example.com.zone')