3
0
mirror of https://github.com/triqs/dft_tools synced 2024-07-04 18:36:05 +02:00

Added Scenario 4 to 'test_parse_input()' (test10.cfg)

This commit is contained in:
Oleg E. Peil 2015-02-16 12:05:02 +01:00 committed by Michel Ferrero
parent bcc20a0399
commit 74a1ad280d
2 changed files with 30 additions and 0 deletions

View 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

View File

@ -317,6 +317,12 @@ class TestSpecialParsers(unittest.TestCase):
with self.assertRaisesRegexp(Exception, err_mess):
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()