def all_tools(request): if request.user.is_anonymous(): return HttpResponseRedirect('/accounts/login') else: tools = toolUtil.getAllTools() context = {} context.update(csrf(request)) context['tools'] = tools context.update(content.genBaseLoggedIn(request)) return render_to_response('all_tools.html', context)
def test_GetAllTools(self): """ """ self.assertIn(self.ncTool, toolUtils.getAllTools())
def test_GetAllTools(self): """ """ self.assertIn (self.ncTool, toolUtils.getAllTools())