aboutsummaryrefslogtreecommitdiffstats
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
parent41f85411c303c6bd991f68f6e60cb6a26541fed0 (diff)
downloadsos-5de1a92338343252a15ce6ed9e4a1a538c89f264.tar.gz
[plugins] add test for multiple arguments to add_copy_spec()
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--tests/plugin_tests.py4
-rw-r--r--tests/test.txt1
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