mirror of
https://github.com/triqs/dft_tools
synced 2025-01-03 01:55:56 +01:00
Added Scenario 4 to 'test_parse_input()' (test10.cfg)
This commit is contained in:
parent
bcc20a0399
commit
74a1ad280d
24
python/converters/vasp/test/inpconf/test10.cfg
Normal file
24
python/converters/vasp/test/inpconf/test10.cfg
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[General]
|
||||||
|
|
||||||
|
[Group 1]
|
||||||
|
SHELLS = 1 2
|
||||||
|
EMIN = -7.6
|
||||||
|
EMAX = 3.0
|
||||||
|
|
||||||
|
[Shell 1]
|
||||||
|
LSHELL = 2
|
||||||
|
IONS = 5..8
|
||||||
|
|
||||||
|
[Shell 2]
|
||||||
|
LSHELL = 1
|
||||||
|
IONS = 1..4
|
||||||
|
|
||||||
|
RTRANSFORM = 0.0 1.0 0.0
|
||||||
|
1.0 0.0 0.0
|
||||||
|
0.0 0.0 1.0
|
||||||
|
|
||||||
|
[Shell 3]
|
||||||
|
LSHELL = 3
|
||||||
|
IONS = 1..4
|
||||||
|
|
||||||
|
|
@ -317,6 +317,12 @@ class TestSpecialParsers(unittest.TestCase):
|
|||||||
with self.assertRaisesRegexp(Exception, err_mess):
|
with self.assertRaisesRegexp(Exception, err_mess):
|
||||||
conf_pars.parse_input()
|
conf_pars.parse_input()
|
||||||
|
|
||||||
|
# Scenario 4
|
||||||
|
conf_pars = ConfigParameters('test10.cfg')
|
||||||
|
err_mess = "Some shells are not inside"
|
||||||
|
with self.assertRaisesRegexp(AssertionError, err_mess):
|
||||||
|
conf_pars.parse_input()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user