summaryrefslogtreecommitdiff
path: root/cloudinit/tests/test_simpletable.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2017-10-10 14:11:42 -0600
committerChad Smith <chad.smith@canonical.com>2017-10-10 14:11:42 -0600
commit0df20692b8160b1b7fcbb2592287a9fb100d1070 (patch)
treec0d9465d8414a78aa347c244df7d272584de2abd /cloudinit/tests/test_simpletable.py
parentd489374c5a9e7f81649f87c48401bf12e795a7e7 (diff)
parentd4f70470b7c3af89d4bf97123f4d61ad8a58805b (diff)
downloadvyos-cloud-init-0df20692b8160b1b7fcbb2592287a9fb100d1070.tar.gz
vyos-cloud-init-0df20692b8160b1b7fcbb2592287a9fb100d1070.zip
merge from master at 17.1-18-gd4f70470
Diffstat (limited to 'cloudinit/tests/test_simpletable.py')
-rw-r--r--cloudinit/tests/test_simpletable.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cloudinit/tests/test_simpletable.py b/cloudinit/tests/test_simpletable.py
index 96bc24cf..a12a62a0 100644
--- a/cloudinit/tests/test_simpletable.py
+++ b/cloudinit/tests/test_simpletable.py
@@ -97,4 +97,10 @@ class TestSimpleTable(CiTestCase):
table = SimpleTable(AUTHORIZED_KEYS_FIELDS)
for row in AUTHORIZED_KEYS_ROWS:
table.add_row(row)
- self.assertEqual(str(table), AUTHORIZED_KEYS_TABLE)
+
+ def test_get_string(self):
+ """get_string() method returns the same content as str()."""
+ table = SimpleTable(AUTHORIZED_KEYS_FIELDS)
+ for row in AUTHORIZED_KEYS_ROWS:
+ table.add_row(row)
+ self.assertEqual(table.get_string(), str(table))