summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2014-01-11 10:24:31 +1300
committerSteve Baker <sbaker@redhat.com>2014-01-13 10:30:01 +1300
commitdf14b6560082fac60fa7ca947f67355e11f44f92 (patch)
treecd8f3578ac37a3a58851cab461dbbb3299189f8f
parent95ac0894760af6e9857e7aaa83f9ce0e08a55695 (diff)
downloadpython-heatclient-df14b6560082fac60fa7ca947f67355e11f44f92.tar.gz
Test coverage of empty environment
Change-Id: Iade321762a0e68605006252204d0dd4c7aac8a39
-rw-r--r--heatclient/tests/test_template_utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/heatclient/tests/test_template_utils.py b/heatclient/tests/test_template_utils.py
index 14734ca..872a189 100644
--- a/heatclient/tests/test_template_utils.py
+++ b/heatclient/tests/test_template_utils.py
@@ -110,6 +110,11 @@ class ShellEnvironmentTest(testtools.TestCase):
template_utils.process_environment_and_files(fields, url)
self.assertEqual("A's contents.", fields['files'][a_url])
+ def test_no_process_environment_and_files(self):
+ fields = {}
+ template_utils.process_environment_and_files(fields, None)
+ self.assertEqual({}, fields)
+
def test_global_files(self):
a = "A's contents."
url = 'file:///home/b/a.yaml'