diff options
author | Chad Smith <chad.smith@canonical.com> | 2017-10-10 14:11:42 -0600 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2017-10-10 14:11:42 -0600 |
commit | 0df20692b8160b1b7fcbb2592287a9fb100d1070 (patch) | |
tree | c0d9465d8414a78aa347c244df7d272584de2abd /cloudinit/tests/test_simpletable.py | |
parent | d489374c5a9e7f81649f87c48401bf12e795a7e7 (diff) | |
parent | d4f70470b7c3af89d4bf97123f4d61ad8a58805b (diff) | |
download | vyos-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.py | 8 |
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)) |