Révision 03fab2dd tests/test_dos_input.py
b/tests/test_dos_input.py | ||
---|---|---|
18 | 18 |
self.assertRaises(ValueError, str2lst, '3 ((6 7) 8) 4') |
19 | 19 |
|
20 | 20 |
|
21 |
class TestCheckInpFile(unittest.TestCase): |
|
22 |
def test_good(self): |
|
23 |
self.assertEqual(check_inp_file('cp2k.inp', 'cp2k'), None) |
|
24 |
|
|
25 |
def test_bad(self): |
|
26 |
self.assertRaises(UnboundLocalError, check_inp_file, 'cp2k.sub', 'cp2k') |
|
27 |
|
|
28 |
|
|
21 | 29 |
class TestGoodInput(unittest.TestCase): |
22 | 30 |
read_input('good.inp') |
23 | 31 |
|
... | ... | |
33 | 41 |
'max_qw': 5, |
34 | 42 |
'special_atoms': [('Fe1', 'Fe'), ('Fe2', 'Fe'), |
35 | 43 |
('O1', 'O')], |
36 |
'isol_inp_file': 'isolated.inp',
|
|
44 |
'isol_inp_file': 'cp2k.inp',
|
|
37 | 45 |
'molec_file': 'acetic.xyz', |
38 | 46 |
'cluster_magns': ['energy', 'moi'], |
39 | 47 |
'num_conformers': 100, |
Formats disponibles : Unified diff