# Path: acos_client/v30/dns.py
# class DNS(base.BaseV30):
#     def _set_dns(self, precedence, addr):
#     def _set_suffix(self, suffix):
#     def set(self, primary=None, secondary=None, suffix=None):
#     def delete(self, primary=None, secondary=None, suffix=None):


    import unittest
    import mock
    import unittest2 as unittest
    from unittest import mock
from acos_client.v30 import dns

#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
from __future__ import absolute_import
from __future__ import unicode_literals

try:
except ImportError:



class TestDns(unittest.TestCase):
    def setUp(self):
        self.client = mock.MagicMock()
        self.target = dns.DNS(self.client)
        self.url_prefix = "/axapi/v3/ip/dns/"

    def test_primary_ipv4(self):
        expected = '192.0.2.4'
        self.target.set(primary=expected)


# Path: acos_client/v30/dns.py
# class DNS(base.BaseV30):
#     def _set_dns(self, precedence, addr):
#     def _set_suffix(self, suffix):
#     def set(self, primary=None, secondary=None, suffix=None):
#     def delete(self, primary=None, secondary=None, suffix=None):


# Path: acos_client/tests/unit/v30/test_dns.py
    import unittest
    import mock
    import unittest2 as unittest
    from unittest import mock
from acos_client.v30 import dns


#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
from __future__ import absolute_import
from __future__ import unicode_literals

try:
except ImportError:



class TestDns(unittest.TestCase):
    def setUp(self):
        self.client = mock.MagicMock()
        self.target = dns.DNS(self.client)
        self.url_prefix = "/axapi/v3/ip/dns/"

    def test_primary_ipv4(self):
        expected = '192.0.2.4'
        self.target.set(primary=expected)


        expected_payload = {'primary': {'ip-v4-addr': expected}}