summaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-05-23 14:58:10 -0400
committerScott Moser <smoser@brickies.net>2017-05-24 14:44:57 -0400
commit9e01cca6a90a30e1b8cf454467c002b40f22dff9 (patch)
treea3d337255a322c5ee0805bf8601317f019794e3b /tests/unittests
parent13673f8d2b815452aa22f8e3811e04481558a731 (diff)
downloadvyos-cloud-init-9e01cca6a90a30e1b8cf454467c002b40f22dff9.tar.gz
vyos-cloud-init-9e01cca6a90a30e1b8cf454467c002b40f22dff9.zip
test: update docstring on test_configured_list_with_none
Simply improve the docstring on a test added in last commit.
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_ds_identify.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittests/test_ds_identify.py b/tests/unittests/test_ds_identify.py
index 8559e1fe..f5694b26 100644
--- a/tests/unittests/test_ds_identify.py
+++ b/tests/unittests/test_ds_identify.py
@@ -211,7 +211,10 @@ class TestDsIdentify(CiTestCase):
self._check_via_dict(mydata, rc=RC_FOUND, dslist=['NoCloud', DS_NONE])
def test_configured_list_with_none(self):
- """If user set a datasource_list, that should be used."""
+ """When datasource_list already contains None, None is not added.
+
+ The explicitly configured datasource_list has 'None' in it. That
+ should not have None automatically added."""
mydata = copy.deepcopy(VALID_CFG['GCE'])
cfgpath = 'etc/cloud/cloud.cfg.d/myds.cfg'
mydata['files'][cfgpath] = 'datasource_list: ["Ec2", "None"]\n'