示例#1
0
def test_check_data():
    try:
        check.data(config, data_file)
    except:
        pass

    time.sleep(1)
    clean()
示例#2
0
def test_no_limit():
    config = init('c')
    find = 'limits.json'
    replace = 'limitsx.json'
    mod.replace_text_in_file(config, find, replace)
    # the file.verify will exit with -1
    try:
        check.data(config, None)
    except:
        pass
    time.sleep(1)
    assert res.is_text_in_file(logfile, 'configuration error: file test/schemas/limitsx.json does not exist')
    clean()