aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/plugin_tests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py
index 00f221d3..d3e67b57 100644
--- a/tests/plugin_tests.py
+++ b/tests/plugin_tests.py
@@ -253,6 +253,10 @@ class AddCopySpecTests(unittest.TestCase):
# add_copy_spec_limit()
+ def test_single_file_no_limit(self):
+ self.mp.add_copy_spec_limit("tests/tail_test.txt")
+ self.assert_expect_paths()
+
def test_single_file_under_limit(self):
self.mp.add_copy_spec_limit("tests/tail_test.txt", 1)
self.assert_expect_paths()
@@ -273,6 +277,15 @@ class AddCopySpecTests(unittest.TestCase):
self.assertFalse(self.mp.add_copy_spec_limit('', 1))
self.assertFalse(self.mp.add_copy_spec_limit(None, 1))
+ def test_glob_file_limit_no_limit(self):
+ self.mp.sysroot = '/'
+ tmpdir = tempfile.mkdtemp()
+ fn = create_file(2, dir=tmpdir)
+ fn2 = create_file(2, dir=tmpdir)
+ self.mp.add_copy_spec_limit(tmpdir + "/*")
+ self.assertEquals(len(self.mp.copy_paths), 2)
+ shutil.rmtree(tmpdir)
+
def test_glob_file_over_limit(self):
self.mp.sysroot = '/'
tmpdir = tempfile.mkdtemp()