def test_update_astute_yaml_type_error(self): self.yaml_mock.return_value = [] with self.assertRaises(TypeError): bs_image._update_astute_yaml()
def test_update_astute_yaml_key_error(self): self.yaml_mock.return_value = {} with self.assertRaises(KeyError): bs_image._update_astute_yaml()