forked from enviPath/enviPy
Current Dev State
This commit is contained in:
14
tests/test_formatconverter.py
Normal file
14
tests/test_formatconverter.py
Normal file
@ -0,0 +1,14 @@
|
||||
from django.test import TestCase
|
||||
|
||||
from utilities.chem import FormatConverter
|
||||
|
||||
|
||||
class FormatConverterTestCase(TestCase):
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def test_standardization(self):
|
||||
smiles = 'C[n+]1c([N-](C))cccc1'
|
||||
standardized_smiles = FormatConverter.standardize(smiles)
|
||||
self.assertEqual(standardized_smiles, 'CN=C1C=CC=CN1C')
|
||||
Reference in New Issue
Block a user