~wesley-wiedenmeier/curtin/uefi-test

« back to all changes in this revision

Viewing changes to tests/vmtests/releases.py

  • Committer: Scott Moser
  • Date: 2016-01-11 18:25:49 UTC
  • mfrom: (338.2.4 trunk.bad-LOG)
  • Revision ID: smoser@ubuntu.com-20160111182549-fcoz1dc3usffbnyh
tests/vmtests: fix invalid variable and run pylint on tests/vmtests

This fixes a bad variable in tests/vmtests anad also starts to run
pylint with python3 on tests/vmtests.  pylint *would* have caught
my bad variable.

Also fix the other complaints from pylint on that code so that
it will successfully run.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class _AttrDict(dict):
2
 
    # http://stackoverflow.com/questions/4984647/
3
 
    #     accessing-dict-keys-like-an-attribute-in-python
4
 
    def __init__(self, *args, **kwargs):
5
 
        super(_AttrDict, self).__init__(*args, **kwargs)
6
 
        self.__dict__ = self
7
 
 
8
 
 
9
1
class _ReleaseBase(object):
10
2
    repo = "maas-daily"
11
3
    arch = "amd64"
36
28
    extra_kern_args = "--- net.ifnames=0"
37
29
 
38
30
 
39
 
base_vm_classes = _AttrDict({
40
 
    'precise': _PreciseBase,
41
 
    'trusty': _TrustyBase,
42
 
    'vivid': _VividBase,
43
 
    'wily': _WilyBase,
44
 
    'xenial': _XenialBase,
45
 
})
 
31
class _Releases(object):
 
32
    precise = _PreciseBase
 
33
    trusty = _TrustyBase
 
34
    vivid = _VividBase
 
35
    wily = _WilyBase
 
36
    xenial = _XenialBase
 
37
 
 
38
base_vm_classes = _Releases
46
39
 
47
40
# vi: ts=4 expandtab syntax=python