def test_local_fail(self):
        try:
            import ckan
        except __HOLE__:
            raise unittest.SkipTest('ckan not importable')
        self.assertRaises(
            ckanapi.CKANAPIError,
            ckanapi.LocalCKAN('fake').call_action,
            'fake', {}, {}, 'apikey not allowed')
dataset/ETHPy150Open ckan/ckanapi/ckanapi/tests/test_call.py/TestCallAction.test_local_fail