Skip to content

Commit

Permalink
Reenable test that had the code fixed on master.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Apr 14, 2015
1 parent cc2a333 commit 8c54930
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ckan/tests/legacy/models/test_user.py
Expand Up @@ -168,13 +168,11 @@ def test_number_of_edits(self):
assert model.User.by_name(u'annafan').number_of_edits() == i, \
"annafan should have made %i edit(s)" % i


#def test_number_of_administered_packages(self):
# model.User.by_name(u'annafan').number_created_packages() == 1, \
# "annafan should have created one package"
# model.User.by_name(u'joeadmin').number_created_packages() == 0, \
# "joeadmin shouldn't have created any packages"

def test_number_of_administered_packages(self):
model.User.by_name(u'annafan').number_created_packages() == 1, \
"annafan should have created one package"
model.User.by_name(u'joeadmin').number_created_packages() == 0, \
"joeadmin shouldn't have created any packages"

def test_search(self):
anna_names = [a.name for a in model.User.search('anna').all()]
Expand Down

0 comments on commit 8c54930

Please sign in to comment.