From 3516ebd2852a055980f8c5de97f5c003677d0880 Mon Sep 17 00:00:00 2001 From: "Oleg E. Peil" Date: Mon, 16 Feb 2015 11:37:41 +0100 Subject: [PATCH] * Replaced 'test_groups_shells_consistency()' with 'test_parse_input()' * Fixed Scenario 1 of 'test_parse_input()' * Fixed Scenario 1 of 'test_parse_groups()' --- .../converters/vasp/test/inpconf/test_inpconf.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python/converters/vasp/test/inpconf/test_inpconf.py b/python/converters/vasp/test/inpconf/test_inpconf.py index 4d7e8bd4..883293e7 100644 --- a/python/converters/vasp/test/inpconf/test_inpconf.py +++ b/python/converters/vasp/test/inpconf/test_inpconf.py @@ -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()