~smoser/cloud-init/trunk.new-ds

« back to all changes in this revision

Viewing changes to tests/unittests/test_distros/test_hosts.py

  • Committer: Scott Moser
  • Date: 2015-02-11 01:53:20 UTC
  • mfrom: (1052.1.45 py2-3.smoser)
  • Revision ID: smoser@ubuntu.com-20150211015320-049dv6n1mk2in7l1
python3 support.

This gives us functional python3 support.  There are likely
still bugs, but instance boot on openstack is functional now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from mocker import MockerTestCase
 
1
import unittest
2
2
 
3
3
from cloudinit.distros.parsers import hosts
4
4
 
14
14
BASE_ETC = BASE_ETC.strip()
15
15
 
16
16
 
17
 
class TestHostsHelper(MockerTestCase):
 
17
class TestHostsHelper(unittest.TestCase):
18
18
    def test_parse(self):
19
19
        eh = hosts.HostsConf(BASE_ETC)
20
20
        self.assertEquals(eh.get_entry('127.0.0.1'), [['localhost']])