diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-05-01 05:38:56 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-05-01 05:38:56 -0400 |
commit | 96854d720d4bd356181acfa093744599a807ea8e (patch) | |
tree | 8617f48d840137d94bed1958da4ebef7587e2bca /tests/unittests/test_handler | |
parent | 5ab9a1349db2286fca96681e00480d04bfd4473d (diff) | |
download | vyos-cloud-init-96854d720d4bd356181acfa093744599a807ea8e.tar.gz vyos-cloud-init-96854d720d4bd356181acfa093744599a807ea8e.zip |
fix 'Make pyflakes'
Diffstat (limited to 'tests/unittests/test_handler')
-rw-r--r-- | tests/unittests/test_handler/test_handler_apt_configure.py | 1 | ||||
-rw-r--r-- | tests/unittests/test_handler/test_handler_snappy.py | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_configure.py b/tests/unittests/test_handler/test_handler_apt_configure.py index 02cad8b2..895728b3 100644 --- a/tests/unittests/test_handler/test_handler_apt_configure.py +++ b/tests/unittests/test_handler/test_handler_apt_configure.py @@ -7,7 +7,6 @@ import os import re import shutil import tempfile -import unittest class TestAptProxyConfig(TestCase): diff --git a/tests/unittests/test_handler/test_handler_snappy.py b/tests/unittests/test_handler/test_handler_snappy.py index f3109bac..eceb14d9 100644 --- a/tests/unittests/test_handler/test_handler_snappy.py +++ b/tests/unittests/test_handler/test_handler_snappy.py @@ -38,7 +38,6 @@ class TestInstallPackages(t_help.TestCase): if 'args' not in kwargs: kwargs['args'] = args[0] self.subp_called.append(kwargs) - snap_cmds = [] args = kwargs['args'] # here we basically parse the snappy command invoked # and append to snapcmds a list of (mode, pkg, config) @@ -117,9 +116,6 @@ class TestInstallPackages(t_help.TestCase): def test_package_ops_common_filename(self): # fish package name from filename # package names likely look like: pkgname.namespace_version_arch.snap - fname = "xkcd-webserver.canonical_0.3.4_all.snap" - name = "xkcd-webserver.canonical" - shortname = "xkcd-webserver" # find filenames self.populate_tmp( @@ -165,7 +161,6 @@ class TestInstallPackages(t_help.TestCase): 'ubuntu-core': {'c1': 'c2'}, 'notinstalled.smoser': {'s1': 's2'}, } - cfg = {'config-example-k1': 'config-example-k2'} ret = get_package_ops( packages=['config-example.canonical'], configs=cfgs, installed=['config-example.smoser', 'pkg1.canonical', |