File: test_descriptor.py

package info (click to toggle)
python-modelcif 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 688 kB
  • sloc: python: 6,746; makefile: 14; sh: 6
file content (19 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import utils
import os
import unittest

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


class Tests(unittest.TestCase):
    def test_descriptor(self):
        """Test Descriptor classes"""
        base = modelcif.descriptor.Descriptor("1abc")
        self.assertEqual(base.value, "1abc")
        _ = repr(base)


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