Skip to content

Commit

Permalink
[xs]: assert_in needs msg argument for dgu tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed May 11, 2012
1 parent 975eb63 commit 1990073
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/tests/__init__.py
Expand Up @@ -345,10 +345,10 @@ def clear_flash(res=None):
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)
def assert_in(a, b, msg=None):
assert a in b, msg or '%r was not in %r' % (a, b)
def assert_not_in(a, b, msg=None):
assert a not in b, msg or '%r was in %r' % (a, b)

class StatusCodes:
STATUS_200_OK = 200
Expand Down

0 comments on commit 1990073

Please sign in to comment.