Skip to content
Snippets Groups Projects
Commit 44cd2b31 authored by Vermaat's avatar Vermaat
Browse files

Add tests for ncbi module

parent 9d06cc02
No related branches found
No related tags found
No related merge requests found
"""
Tests for the mutalyzer.ncbi module.
"""
from __future__ import unicode_literals
import pytest
from mutalyzer import ncbi
pytestmark = [
pytest.mark.usefixtures('references'),
pytest.mark.parametrize('references', [['MARK1']], indirect=True)
]
def test_transcript_to_protein():
"""
Get protein for transcript.
"""
assert ncbi.transcript_to_protein('NM_018650') == 'NP_061120'
def test_transcript_to_protein_negative():
"""
Get no protein for transcript.
"""
assert ncbi.transcript_to_protein('XM_005273133') is None
def test_protein_to_transcript():
"""
Get transcript for protein.
"""
assert ncbi.protein_to_transcript('NP_061120') == 'NM_018650'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment