Skip to content

Commit

Permalink
Fix some PEP8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 27, 2012
1 parent 9bc76a0 commit 0594077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/tests/functional/api/__init__.py
@@ -1,6 +1,7 @@
from nose.tools import assert_equal
import copy


def change_lists_to_sets(iterable):
'''recursive method to drill down into iterables to
convert any list or tuples into sets. Does not work
Expand All @@ -25,9 +26,10 @@ def change_lists_to_sets(iterable):
else:
raise NotImplementedError


def assert_dicts_equal_ignoring_ordering(dict1, dict2):
'''Asserts dicts are equal, assuming that the ordering of
any lists is unimportant.'''
any lists is unimportant.'''
dicts = [copy.deepcopy(dict1), copy.deepcopy(dict2)]
for d in dicts:
d = change_lists_to_sets(d)
Expand Down

0 comments on commit 0594077

Please sign in to comment.