def smoke_test(base_url):
    tests = 0
    status = 0
    print base_url % "MOLLY SMOKER %s"
    print "------------"

    for type, ua in USER_AGENTS.items():
        print
        print "Simulating", type
        for url in URLS:
            tests += 1
            file, code = verify_200(base_url + url, ua)
            if code == 404:
                print "SKIP", url
            elif code != 200:
                status += 1
                print "FAIL", code, url
            else:
                print " OK ", code, url
    
    print "SUMMARY"
    print "-------"
    print
    print "Ran", tests, "tests"
    if status == 0:
        print "All passed - well done"
    else:
        print status, "tests failed"
    
    return status
dataset/ETHPy150Open mollyproject/mollyproject/molly/commands/smoketest.py/smoke_test/swapped operands of `%`