Beispiel #1
0
 def test_will_import_text_from_param_file(self):
     self.assertEqual(_get_param(_remove_spaces(self.text7)), {'bla': 'Calibration'},
                      "Error importing text from param file")
Beispiel #2
0
 def test_will_import_boolean_from_param_file(self):
     self.assertEqual(_get_param(_remove_spaces(self.text6)), {'bla': True},
                      "Error importing boolean from param file")
Beispiel #3
0
 def test_will_not_import_data_after_hash(self):
     self.assertFalse('bla2' in _get_param(_remove_spaces(self.text4)).keys(),
                      "Error parameter 'bla2' after hash has been imported")
Beispiel #4
0
 def test_can_import_param_data(self):
     self.assertTrue('bla' in _get_param(_remove_spaces(self.text3)).keys(),
                     "Error parameter 'bla' not imported correctly")
Beispiel #5
0
 def test_can_import_param_file_no_data(self):
     self.assertTrue(len(_get_param(_remove_spaces(self.text2))) == 0,
                     "Error processing parameters file no data")
Beispiel #6
0
 def test_can_process_blank_param_file(self):
     self.assertTrue(len(_get_param(_remove_spaces(self.text1))) == 0,
                     "Error processing blank parameters file")