Пример #1
0
 def test_load_variables_correct_yaml(self):
     """Loads a correct yaml"""
     var_dict = load_variables(self.correct_yaml)
     self.assertIsNotNone(var_dict)
     self.assertIsInstance(var_dict, dict)
Пример #2
0
 def test_load_variables_correct_string_01(self):
     """Loads a correct string of variables"""
     var_dict = load_variables(self.correct_string_multiple_vars)
     self.assertIsNotNone(var_dict)
     self.assertEqual(len(var_dict), 2)
Пример #3
0
 def test_load_variables_incorrect_string_00(self):
     """Loads a incorrect string of variables"""
     var_dict = load_variables(self.incorrect_string)
     self.assertIsNotNone(var_dict)
Пример #4
0
 def test_load_variables_correct_string_00(self):
     """Loads a correct string of variables"""
     var_dict = load_variables(self.correct_string_single_var)
     self.assertIsNotNone(var_dict)
     self.assertEqual(len(var_dict), 1)