Skip to content

Commit

Permalink
PEP-8 pulp.devel.unit.server.
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy Barlow committed May 22, 2015
1 parent 2810f4c commit 8343c50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion devel/pulp/devel/unit/server/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def validate_auth(self, operation):
validate that a validation check was performed for a given operation
:param operation: the operation to validate
"""
self.mock_user_query_manager.return_value.is_authorized.assert_called_once_with(mock.ANY, mock.ANY, operation)
self.mock_user_query_manager.return_value.is_authorized.assert_called_once_with(
mock.ANY, mock.ANY, operation)

def get_mock_uri_path(self, *args):
"""
Expand Down
6 changes: 3 additions & 3 deletions devel/pulp/devel/unit/server/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def assert_validation_exception(method, error_codes, *args, **kwargs):

expected_errors_missing = errors_expected.difference(errors_raised)
if expected_errors_missing:
raise AssertionError("The following errors were specified but not raised: %s" %
raise AssertionError("The following errors were specified but not raised: %s" %
str(expected_errors_missing))
errors_raised_unexpectedly = errors_raised.difference(errors_expected)
if errors_raised_unexpectedly:
Expand Down Expand Up @@ -70,7 +70,7 @@ def compare_element(source, target):
raise AssertionError("elements do not match. Tags are different %s != %s" %
(source.tag, target.tag))

#test keys
# test keys
source_keys = set(source.keys())
target_keys = set(target.keys())

Expand All @@ -86,7 +86,7 @@ def compare_element(source, target):
raise AssertionError("elements do not match. Text is different\n%s\n%s" % (source.text,
target.text))

#Use the deprecated getchildren method for python 2.6 support
# Use the deprecated getchildren method for python 2.6 support
source_children = list(source.getchildren())
target_children = list(target.getchildren())
if len(source_children) != len(target_children):
Expand Down
1 change: 1 addition & 0 deletions run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'bindings',
'client_consumer',
'client_lib',
'devel/pulp/devel/unit/server/',
'devel/test/unit/test_task_simulator.py',
'oid_validation/',
'repoauth/',
Expand Down

0 comments on commit 8343c50

Please sign in to comment.