예제 #1
0
def airport_test():
    error = 0
    for data in getdata.airport():
        checkpoint.checkout_base(data)
        checkpoint.checkout_city(data)
        checkpoint.checkout_district(data)
        checkpoint.checkout_downtown(data)
        checkpoint.checkout_province(data)
예제 #2
0
def province_test():
    print "开始关键字测试+省份"
    print "开始hotel_test"
    for data in getdata.hotel():
        checkpoint.checkout_province(data)
    print "开始markland_test"
    for data in getdata.markland():
        checkpoint.checkout_province(data)
    print "开始metrostation_test"
    for data in getdata.metrostation():
        checkpoint.checkout_province(data)
    print "开始airport_test"
    for data in getdata.airport():
        checkpoint.checkout_province(data)
    print "开始railwaystation_test"
    for data in getdata.railwaystation():
        checkpoint.checkout_province(data)
예제 #3
0
def city_test():
    print "开始关键字测试+城市"
    print "开始hotel_test"
    for data in getdata.hotel():
        checkpoint.checkout_city(data)
    print "开始markland_test"
    for data in getdata.markland():
        checkpoint.checkout_city(data)
    print "开始metrostation_test"
    for data in getdata.metrostation():
        checkpoint.checkout_city(data)
    print "开始airport_test"
    for data in getdata.airport():
        checkpoint.checkout_city(data)
    print "开始railwaystation_test"
    for data in getdata.railwaystation():
        checkpoint.checkout_city(data)
예제 #4
0
def downtown_test():
    print "开始关键字测试+商业区"
    print "开始hotel_test"
    for data in getdata.hotel():
        checkpoint.checkout_downtown(data)
    print "开始markland_test"
    for data in getdata.markland():
        checkpoint.checkout_downtown(data)
    print "开始metrostation_test"
    for data in getdata.metrostation():
        checkpoint.checkout_downtown(data)
    print "开始airport_test"
    for data in getdata.airport():
        checkpoint.checkout_downtown(data)
    print "开始railwaystation_test"
    for data in getdata.railwaystation():
        checkpoint.checkout_downtown(data)