def testOkconfigVerifies(self): result = okconfig.verify() self.assertTrue( all(result.values()), 'Following verifications failed:\n' + '\n'.join( ' -> %s : %s' % (res, isok) for res, isok in result.items() if not isok ) )
def verify_okconfig(request): """ Checks if okconfig is properly set up. """ c = {} c["errors"] = [] c["okconfig_checks"] = okconfig.verify() for i in c["okconfig_checks"].values(): if i == False: c["errors"].append("There seems to be a problem with your okconfig installation") break return render_to_response("verify_okconfig.html", c, context_instance=RequestContext(request))
def verify_okconfig(request): """ Checks if okconfig is properly set up. """ c = {} c['errors'] = [] c['okconfig_checks'] = okconfig.verify() for i in c['okconfig_checks'].values(): if i == False: c['errors'].append('There seems to be a problem with your okconfig installation') break return render_to_response('verify_okconfig.html', c, context_instance=RequestContext(request))
def testOkconfigVerifies(self): result = okconfig.verify() for k, v in result.items(): self.assertTrue(v, msg="Failed on test: %s" % k)
def testOkconfigVerifies(self): result = okconfig.verify() for k, v in result.items(): self.assertTrue(v, msg=_("Failed on test: %s") % k)