Skip to content

Commit

Permalink
[#1682] Test that 404 is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelb authored and amercader committed Oct 3, 2014
1 parent 80d7e00 commit ce6bbdc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ckan/new_tests/controllers/test_group.py
@@ -0,0 +1,23 @@
from nose.tools import assert_equal, assert_true

from routes import url_for

import ckan.new_tests.helpers as helpers
import ckan.model as model


class TestPackageControllerNew(helpers.FunctionalTestBase):

@classmethod
def setup_class(cls):
super(cls, cls).setup_class()
helpers.reset_db()

def setup(self):
model.repo.rebuild_db()

def test_bulk_process_throws_404_for_nonexistent_org(self):
app = self._get_test_app()
response = app.get(url=url_for(controller='organization',
action='bulk_process', id='does-not-exist'),
status=404)

0 comments on commit ce6bbdc

Please sign in to comment.