Skip to content

Commit

Permalink
add test protein
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebaro committed Feb 14, 2019
1 parent afab339 commit 17cb233
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/alphabet/test_protein.py
Expand Up @@ -11,6 +11,7 @@
from wc_utils.util.chem import EmpiricalFormula
import os.path
import shutil
import requests
import tempfile
import unittest

Expand Down Expand Up @@ -40,6 +41,14 @@ def test_ProteinForm_properties(self):
self.assertEqual(form.get_formula(), EmpiricalFormula('C9H17N3O4'))
self.assertEqual(form.get_charge(), 3 * monomers.A.get_charge())

def test_ProteinForm_get_monomer_details(self):
path = os.path.join(self.dirname, 'alphabet.yml')
session = requests.Session()
self.assertEqual(protein.ProteinAlphabetBuilder().get_monomer_details('AA0037', session)[0], 'S')
self.assertEqual(protein.ProteinAlphabetBuilder().get_monomer_details('AA0037', session)[3], {'AA0016'})
# add more for the identifiers


def test_ProteinAlphabetBuilder(self):
path = os.path.join(self.dirname, 'alphabet.yml')

Expand Down

0 comments on commit 17cb233

Please sign in to comment.