~oddbloke/cloud-init/fix-gce-az

« back to all changes in this revision

Viewing changes to tests/unittests/test_handler/test_handler_snappy.py

  • Committer: Scott Moser
  • Date: 2015-05-01 09:38:56 UTC
  • Revision ID: smoser@ubuntu.com-20150501093856-9ogq51r7w33sqvqa
fix 'Make pyflakes'

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        if 'args' not in kwargs:
39
39
            kwargs['args'] = args[0]
40
40
        self.subp_called.append(kwargs)
41
 
        snap_cmds = []
42
41
        args = kwargs['args']
43
42
        # here we basically parse the snappy command invoked
44
43
        # and append to snapcmds a list of (mode, pkg, config)
117
116
    def test_package_ops_common_filename(self):
118
117
        # fish package name from filename
119
118
        # package names likely look like: pkgname.namespace_version_arch.snap
120
 
        fname = "xkcd-webserver.canonical_0.3.4_all.snap"
121
 
        name = "xkcd-webserver.canonical"
122
 
        shortname = "xkcd-webserver"
123
119
 
124
120
        # find filenames
125
121
        self.populate_tmp(
165
161
            'ubuntu-core': {'c1': 'c2'},
166
162
            'notinstalled.smoser': {'s1': 's2'},
167
163
        }
168
 
        cfg = {'config-example-k1': 'config-example-k2'}
169
164
        ret = get_package_ops(
170
165
            packages=['config-example.canonical'], configs=cfgs,
171
166
            installed=['config-example.smoser', 'pkg1.canonical',