19 lines
495 B
Python
19 lines
495 B
Python
from tcga_downloader.manifest import ManifestRecord, write_manifest, load_manifest
|
|
|
|
|
|
def test_manifest_roundtrip_tsv(tmp_path):
|
|
records = [
|
|
ManifestRecord(
|
|
file_id="f1",
|
|
file_name="a.tsv",
|
|
data_type="Gene Expression",
|
|
data_format="TSV",
|
|
size=123,
|
|
md5="abc",
|
|
)
|
|
]
|
|
path = tmp_path / "m.tsv"
|
|
write_manifest(records, path, fmt="tsv")
|
|
loaded = load_manifest(path)
|
|
assert loaded == records
|