예제 #1
0
 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
         )
     )
예제 #2
0
파일: views.py 프로젝트: palli/adagios
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))
예제 #3
0
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))
예제 #4
0
 def testOkconfigVerifies(self):
     result = okconfig.verify()
     for k, v in result.items():
         self.assertTrue(v, msg="Failed on test: %s" % k)
예제 #5
0
파일: tests.py 프로젝트: tjyang/adagios
 def testOkconfigVerifies(self):
     result = okconfig.verify()
     for k, v in result.items():
         self.assertTrue(v, msg=_("Failed on test: %s") % k)