<reponame>hcorrada/epivizFileServer<filename>tests/test_parser.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pytest
from epivizfileserver import parser
import sys
import os

__author__ = "<NAME>"
__copyright__ = "<NAME>"
__license__ = "mit"


# Data location
# data_path = sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '/data')))
data_path = os.getcwd() + "/tests/data"

def test_bigwig():
    file = parser.BigWig(data_path + "/test.bw")
    assert file.getRange("1", 1, 1000)

def test_bigbed():
    file = parser.BigBed(data_path + "/test.bigBed")
    assert file.getRange("chr1", 1, 1000)
