Skip to content

Commit

Permalink
Merge branch 'feature-1607-dgu-maintentance-refactor'
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Mar 9, 2012
2 parents 8de3723 + cd37330 commit 2d469c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ckan/tests/__init__.py
Expand Up @@ -341,3 +341,11 @@ def skip_test(*args):

def clear_flash(res=None):
messages = _flash.pop_messages()

try:
from nose.tools import assert_in, assert_not_in
except ImportError:
def assert_in(a, b):
assert a in b, '%r was not in %r' % (a, b)
def assert_not_in(a, b):
assert a not in b, '%r was in %r' % (a, b)
2 changes: 1 addition & 1 deletion ckan/tests/lib/test_dictization.py
@@ -1,4 +1,4 @@
from nose.tools import assert_equal, assert_not_in, assert_in
from ckan.tests import assert_equal, assert_not_in, assert_in
from pprint import pprint, pformat
from difflib import unified_diff

Expand Down

0 comments on commit 2d469c8

Please sign in to comment.