示例#1
0
def test_read_cancer_sheet_custom_fields_no_header(tsv_sheet_cancer_no_header):
    with pytest.raises(io_tsv.TSVSheetException) as e_info:
        io_tsv.read_cancer_tsv_sheet(tsv_sheet_cancer_no_header)
    expected = (
        'Unexpected column seen in header row of body: inssStage, lohChr1p, '
        'mycnCn, ncbiTaxon, ngsLibraryNice, patientStatus, shimada4Class, '
        'testSampleNice, timeToDeathDays, timeToEventDays')
    assert expected == str(e_info.value)
示例#2
0
def test_read_cancer_sheet_no_header(tsv_sheet_cancer_no_header):
    sheet = io_tsv.read_cancer_tsv_sheet(tsv_sheet_cancer_no_header)
    assert EXPECTED_CANCER_SHEET_JSON_NO_HEADER == json.dumps(sheet.json_data,
                                                              indent='    ')