File: test_cross_linkers.py

package info (click to toggle)
python-ihm 2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,368 kB
  • sloc: python: 30,422; ansic: 5,990; sh: 24; makefile: 20
file content (21 lines) | stat: -rw-r--r-- 515 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import utils
import os
import unittest

TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
utils.set_search_paths(TOPDIR)
import ihm.cross_linkers


class Tests(unittest.TestCase):

    def test_cross_linkers(self):
        """Test cross_linkers module"""
        d = ihm.cross_linkers.dss
        self.assertEqual(d.auth_name, 'DSS')
        self.assertEqual(d.smiles,
                         'C1CC(=O)N(C1=O)OC(=O)CCCCCCC(=O)ON2C(=O)CCC2=O')


if __name__ == '__main__':
    unittest.main()