diff options
Diffstat (limited to 'test/test_descriptor.py')
| -rw-r--r-- | test/test_descriptor.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_descriptor.py b/test/test_descriptor.py new file mode 100644 index 0000000..5591899 --- /dev/null +++ b/test/test_descriptor.py @@ -0,0 +1,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() |
