Debian Codegraph @

tests/test_parse.py

raw symbols SCIP
1 import unittest
2
3 from shelxfile import Shelxfile
4
5
6 class ParseTestCase(unittest.TestCase):
7 def test_parse_hklf_after_uncloded_resi(self):
8 shx = Shelxfile(debug=True)
9 shx.read_file(r'tests/resources/unclosed_resi.res')
10 self.assertEqual('HKLF 4 1 1 0 0 0 1 0 0 0 1 1 0', shx.hklf.__repr__()) # add assertion here
11
12 def test_parse_only_isotropic_after_solution(self):
13 shx = Shelxfile(debug=True)
14 shx.read_file(r'tests/resources/p21c_a_only_isotropic.res')
15 self.assertEqual(146, len(shx.atoms))
16 self.assertEqual({}, shx.fvars.fvars_used())
17
18
19 if __name__ == '__main__':
20 unittest.main()