Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesls committed Oct 11, 2013
1 parent e24a106 commit 9b59102
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
3 changes: 0 additions & 3 deletions tests/unit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
from tests import unittest
from copy import deepcopy
import os
import re
import copy
import logging

Expand All @@ -22,7 +20,6 @@
import requests

from awscli.clidriver import create_clidriver
from botocore.payload import Payload


class BaseAWSCommandParamsTest(unittest.TestCase):
Expand Down
15 changes: 5 additions & 10 deletions tests/unit/test_argprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ def test_improper_separator_for_filters_param(self):
p = self.get_param_object('ec2.DescribeInstances.Filters')
error_msg = "Error parsing parameter --filters.*should be"
with self.assertRaisesRegexp(ParamError, error_msg):
returned = self.simplify(
p, ["Name:tag:Name,Values:foo"])
self.simplify(p, ["Name:tag:Name,Values:foo"])

def test_unknown_key_for_filters_param(self):
p = self.get_param_object('ec2.DescribeInstances.Filters')
Expand Down Expand Up @@ -263,17 +262,13 @@ def test_csv_syntax_errors(self):
p = self.get_param_object('cloudformation.CreateStack.Parameters')
error_msg = "Error parsing parameter --parameters.*should be"
with self.assertRaisesRegexp(ParamError, error_msg):
returned = self.simplify(
p, ['ParameterKey=key,ParameterValue="foo,bar'])
self.simplify(p, ['ParameterKey=key,ParameterValue="foo,bar'])
with self.assertRaisesRegexp(ParamError, error_msg):
returned = self.simplify(
p, ['ParameterKey=key,ParameterValue=foo,bar"'])
self.simplify(p, ['ParameterKey=key,ParameterValue=foo,bar"'])
with self.assertRaisesRegexp(ParamError, error_msg):
returned = self.simplify(
p, ['ParameterKey=key,ParameterValue=""foo,bar"'])
self.simplify(p, ['ParameterKey=key,ParameterValue=""foo,bar"'])
with self.assertRaisesRegexp(ParamError, error_msg):
returned = self.simplify(
p, ['ParameterKey=key,ParameterValue="foo,bar\''])
self.simplify(p, ['ParameterKey=key,ParameterValue="foo,bar\''])


class TestDocGen(BaseArgProcessTest):
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/test_clidriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from botocore.hooks import HierarchicalEmitter
from botocore.base import get_search_path
from botocore.provider import Provider
import botocore.service


GET_DATA = {
Expand Down Expand Up @@ -356,7 +355,6 @@ def test_event_emission_for_top_level_params(self):
self.assertEqual(args_seen[0].unknown_arg, 'foo')

def test_empty_params_gracefully_handled(self):
driver = create_clidriver()
# Simulates the equivalent in bash: --identifies ""
cmd = 'ses get-identity-dkim-attributes --identities'.split()
cmd.append('')
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def tearDown(self):
del sys.modules['__fake_plugin__.__fake__']

def test_plugin_register(self):
emitter = plugin.load_plugins(
plugin.load_plugins(
{'fake_plugin': '__fake_plugin__.__fake__.bar'})
self.assertTrue(self.fake_module.called)

Expand Down

0 comments on commit 9b59102

Please sign in to comment.