File: test_parse.py

package info (click to toggle)
python-shelxfile 10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,548 kB
  • sloc: python: 5,610; sh: 9; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import unittest

from shelxfile import Shelxfile


class ParseTestCase(unittest.TestCase):
    def test_parse_hklf_after_uncloded_resi(self):
        shx = Shelxfile()
        shx.read_file(r'tests/resources/unclosed_resi.res')
        self.assertEqual('HKLF 4 1  1 0 0 0 1 0 0 0 1  1 0', shx.hklf.__repr__())  # add assertion here


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