~chad.smith/curtin/common-ci-test-case

« back to all changes in this revision

Viewing changes to tests/unittests/test_config.py

  • Committer: Chad Smith
  • Date: 2017-08-03 19:43:46 UTC
  • Revision ID: chad.smith@canonical.com-20170803194346-798ib32f4v25266e
s/CiTestCase/CurtinTestCase/

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
import textwrap
4
4
 
5
5
from curtin import config
6
 
from .helpers import CiTestCase
7
 
 
8
 
 
9
 
class TestMerge(CiTestCase):
 
6
from .helpers import CurtinTestCase
 
7
 
 
8
 
 
9
class TestMerge(CurtinTestCase):
10
10
    def test_merge_cfg_string(self):
11
11
        d1 = {'str1': 'str_one'}
12
12
        d2 = {'dict1': {'d1.e1': 'd1-e1'}}
16
16
        self.assertEqual(d1, expected)
17
17
 
18
18
 
19
 
class TestCmdArg2Cfg(CiTestCase):
 
19
class TestCmdArg2Cfg(CurtinTestCase):
20
20
    def test_cmdarg_flat(self):
21
21
        self.assertEqual(config.cmdarg2cfg("foo=bar"), {'foo': 'bar'})
22
22
 
50
50
        self.assertEqual(via_merge, via_merge_cmdarg)
51
51
 
52
52
 
53
 
class TestConfigArchive(CiTestCase):
 
53
class TestConfigArchive(CurtinTestCase):
54
54
    def test_archive_dict(self):
55
55
        myarchive = _replace_consts(textwrap.dedent("""
56
56
            _ARCH_HEAD_