diff options
author | Barry Warsaw <barry@python.org> | 2015-01-22 19:53:04 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2015-01-22 19:53:04 -0500 |
commit | 8329ad5bad5d6b0fcb8f4736fb308914ca3600c7 (patch) | |
tree | 0add38939898c14cea23596c3fc15225e188b888 /tests/unittests/test_distros/test_hostname.py | |
parent | 508670bdaf9545b6bcc8e2009e8bd3f08d6f8796 (diff) | |
download | vyos-cloud-init-8329ad5bad5d6b0fcb8f4736fb308914ca3600c7.tar.gz vyos-cloud-init-8329ad5bad5d6b0fcb8f4736fb308914ca3600c7.zip |
More conversions from mocker to mock.
Diffstat (limited to 'tests/unittests/test_distros/test_hostname.py')
-rw-r--r-- | tests/unittests/test_distros/test_hostname.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_distros/test_hostname.py b/tests/unittests/test_distros/test_hostname.py index 8e644f4d..143e29a9 100644 --- a/tests/unittests/test_distros/test_hostname.py +++ b/tests/unittests/test_distros/test_hostname.py @@ -1,4 +1,4 @@ -from mocker import MockerTestCase +import unittest from cloudinit.distros.parsers import hostname @@ -12,7 +12,7 @@ blahblah BASE_HOSTNAME = BASE_HOSTNAME.strip() -class TestHostnameHelper(MockerTestCase): +class TestHostnameHelper(unittest.TestCase): def test_parse_same(self): hn = hostname.HostnameConf(BASE_HOSTNAME) self.assertEquals(str(hn).strip(), BASE_HOSTNAME) |