cloud-init/fix-a-small-unitest-error.patch
sxt1001 6f76ce2476 Fix a unitest error
(cherry picked from commit ad95ad36c994f9907eb07a16962fc31ebcad653a)
2023-04-23 18:02:57 +08:00

27 lines
969 B
Diff

From ad6a8ee26ae553e9d7a9aff4e348867d32eadcf0 Mon Sep 17 00:00:00 2001
From: yuelg <yuelg@chinaunicom.cn>
Date: Thu, 20 Apr 2023 18:16:21 +0800
Subject: [PATCH 1/1] fix a small unitest error
Signed-off-by: yuelg <yuelg@chinaunicom.cn>
---
tests/unittests/test_templating.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unittests/test_templating.py b/tests/unittests/test_templating.py
index cba0983..116a647 100644
--- a/tests/unittests/test_templating.py
+++ b/tests/unittests/test_templating.py
@@ -58,7 +58,7 @@ class TestTemplates(test_helpers.CiTestCase):
blob = "blahblah $blah"
(template_type, _renderer, _contents) = templater.detect_template(blob)
self.assertIn("cheetah", template_type)
- self.assertEqual(blob, contents)
+ self.assertEqual(blob, _contents)
blob = '##template:something-new'
self.assertRaises(ValueError, templater.detect_template, blob)
--
2.33.0