Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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")