def test_manifest_limit_exceeded():
    # need a good file to setup and then test get_config with a bad config file
    infile = os.path.join(test_data, 'file_set_good', 'files_good.tsv')
    header = Header(infile)
    cfg = header.get_config(
        os.path.join(configs, 'limit_to_exceed', 'IMPORT-1.0.json'))
    body = Body(infile, cfg['body'])
    body.validate(cfg['body'])
def test_manifest_get_config_bad_version():
    # need a good file to setup and then test get_config with a bad config file
    header = Header(os.path.join(test_data, 'good_manifest.tsv'))
    header.get_config(os.path.join(configs, 'bad_version', 'IMPORT-1.0.json'))
def test_manifest_missing_header():
    # need a good file to setup and then test get_config with a bad config file
    header = Header(os.path.join(test_data, 'missingHeader.tsv'))
    config = header.get_config()
    header.validate(config['header'])
def test_manifest_invalid_header_val():
    # need a good file to setup and then test get_config with a bad config file
    header = Header(os.path.join(test_data, 'invalidHeaderVal.tsv'))
    config = header.get_config()
    header.validate(config['header'])
def test_manifest_json_no_validate():
    # need a good file to setup and then test get_config with a bad config file
    header = Header(os.path.join(test_data, 'good_manifest.tsv'))
    header.get_config(os.path.join(configs, 'no_validate', 'IMPORT-1.0.json'))