~smoser/cloud-init/snappy-fix-config

« back to all changes in this revision

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

  • Committer: Barry Warsaw
  • Date: 2015-01-27 01:02:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1054.
  • Revision ID: barry@python.org-20150127010231-6wd0pyvtpw6s4jzr
Repair the Python 2.6 tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import unittest
2
 
 
3
1
from cloudinit import distros
4
2
from cloudinit import helpers
5
3
from cloudinit import settings
6
4
 
 
5
from ..helpers import TestCase
 
6
 
 
7
 
7
8
bcfg = {
8
9
   'name': 'bob',
9
10
   'plain_text_passwd': 'ubuntu',
15
16
}
16
17
 
17
18
 
18
 
class TestUGNormalize(unittest.TestCase):
 
19
class TestUGNormalize(TestCase):
19
20
 
20
21
    def _make_distro(self, dtype, def_user=None):
21
22
        cfg = dict(settings.CFG_BUILTIN)