aboutsummaryrefslogtreecommitdiffstats
path: root/tests/plugin_tests.py
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-12-13 01:57:04 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-03-28 14:12:07 +0100
commit5de1a92338343252a15ce6ed9e4a1a538c89f264 (patch)
tree06b5a61ca1b9abc999d864229e9204fc7120b0bf /tests/plugin_tests.py
parent41f85411c303c6bd991f68f6e60cb6a26541fed0 (diff)
downloadsos-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/plugin_tests.py')
-rw-r--r--tests/plugin_tests.py4
1 files changed, 4 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):