diff options
author | Michael Adam <obnox@samba.org> | 2016-12-13 01:57:04 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-28 14:12:07 +0100 |
commit | 5de1a92338343252a15ce6ed9e4a1a538c89f264 (patch) | |
tree | 06b5a61ca1b9abc999d864229e9204fc7120b0bf /tests | |
parent | 41f85411c303c6bd991f68f6e60cb6a26541fed0 (diff) | |
download | sos-5de1a92338343252a15ce6ed9e4a1a538c89f264.tar.gz |
[plugins] add test for multiple arguments to add_copy_spec()
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/plugin_tests.py | 4 | ||||
-rw-r--r-- | tests/test.txt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py index 989b1d3e..00f221d3 100644 --- a/tests/plugin_tests.py +++ b/tests/plugin_tests.py @@ -247,6 +247,10 @@ class AddCopySpecTests(unittest.TestCase): self.mp.add_copy_spec('tests/tail_test.*') self.assert_expect_paths() + def test_multiple_files(self): + self.mp.add_copy_spec(['tests/tail_test.txt', 'tests/test.txt']) + self.assertEquals(len(self.mp.copy_paths), 2) + # add_copy_spec_limit() def test_single_file_under_limit(self): diff --git a/tests/test.txt b/tests/test.txt new file mode 100644 index 00000000..d95f3ad1 --- /dev/null +++ b/tests/test.txt @@ -0,0 +1 @@ +content |