3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-06 22:23:52 +01:00

* Replaced 'test_groups_shells_consistency()' with 'test_parse_input()'

* Fixed Scenario 1 of 'test_parse_input()'
  * Fixed Scenario 1 of 'test_parse_groups()'
This commit is contained in:
Oleg E. Peil 2015-02-16 11:37:41 +01:00 committed by Michel Ferrero
parent d2fe6d50e8
commit 3516ebd285

View File

@ -263,21 +263,21 @@ class TestSpecialParsers(unittest.TestCase):
- **if** a correct group section is defined **return** a list of dictionaries
"""
# Scenario 1
# conf_pars = ConfigParameters('test6.cfg')
# err_mess = "At least one group"
# with self.assertRaisesRegexp(AssertionError, err_mess):
# conf_pars.parse_shells()
conf_pars = ConfigParameters('test5.cfg')
err_mess = "Required parameter"
with self.assertRaisesRegexp(Exception, err_mess):
conf_pars.parse_groups()
################################################################################
#
# test_groups_shells_consistency()
# test_parse_input()
#
################################################################################
def test_groups_shells_consistency(self):
def test_parse_input(self):
"""
Function:
def groups_shells_consistency(self)
def parse_input(self)
Scenarios:
@ -294,7 +294,7 @@ class TestSpecialParsers(unittest.TestCase):
conf_pars = ConfigParameters('test6.cfg')
err_mess = "At least one group"
with self.assertRaisesRegexp(AssertionError, err_mess):
conf_pars.parse_shells()
conf_pars.parse_input()