forked from enviPath/enviPy
Fixes #90 Fixes #91 Fixes #115 Fixes #104 Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#116
12 lines
328 B
Python
12 lines
328 B
Python
from django.test import TestCase
|
|
|
|
from utilities.chem import FormatConverter
|
|
|
|
|
|
class FormatConverterTestCase(TestCase):
|
|
|
|
def test_standardization(self):
|
|
smiles = 'C[n+]1c([N-](C))cccc1'
|
|
standardized_smiles = FormatConverter.standardize(smiles)
|
|
self.assertEqual(standardized_smiles, 'CN=C1C=CC=CN1C')
|