aboutsummaryrefslogtreecommitdiffstats
path: root/tests/archive_tests.py
diff options
context:
space:
mode:
authorjhjaggars <jhjaggars@gmail.com>2012-03-02 07:05:09 -0800
committerjhjaggars <jhjaggars@gmail.com>2012-03-02 07:05:09 -0800
commit2a1d5871619d7228fe8c1e6222f848db05b70dfe (patch)
treecdbc602c525afd230321e0610c56166904b6b1e7 /tests/archive_tests.py
parenta0c94dff75fb0ab26e003885379ef6ddd51ca4f0 (diff)
parent4b9412ce0f18da79b71d3abbce343848dfa3a434 (diff)
downloadsos-2a1d5871619d7228fe8c1e6222f848db05b70dfe.tar.gz
Merge pull request #40 from jhjaggars/master
Removing lots of unused files, updating example plugin
Diffstat (limited to 'tests/archive_tests.py')
-rw-r--r--tests/archive_tests.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/archive_tests.py b/tests/archive_tests.py
index 01c46395..f982be0a 100644
--- a/tests/archive_tests.py
+++ b/tests/archive_tests.py
@@ -24,28 +24,28 @@ class ZipFileArchiveTest(unittest.TestCase):
self.zf.close()
def test_add_file(self):
- self.zf.add_file('tests/worker.py')
+ self.zf.add_file('tests/ziptest')
self.zf.close()
- self.check_for_file('test/tests/worker.py')
+ self.check_for_file('test/tests/ziptest')
def test_add_dir(self):
self.zf.add_file('tests/')
self.zf.close()
- self.check_for_file('test/tests/worker.py')
+ self.check_for_file('test/tests/ziptest')
def test_add_renamed(self):
- self.zf.add_file('tests/worker.py', dest='tests/worker_renamed.py')
+ self.zf.add_file('tests/ziptest', dest='tests/ziptest_renamed')
self.zf.close()
- self.check_for_file('test/tests/worker_renamed.py')
+ self.check_for_file('test/tests/ziptest_renamed')
def test_add_renamed_dir(self):
self.zf.add_file('tests/', 'tests_renamed/')
self.zf.close()
- self.check_for_file('test/tests_renamed/worker.py')
+ self.check_for_file('test/tests_renamed/ziptest')
def test_add_string(self):
self.zf.add_string('this is content', 'tests/string_test.txt')
@@ -84,28 +84,28 @@ class TarFileArchiveTest(unittest.TestCase):
self.assertTrue(os.path.exists('test.tar'))
def test_add_file(self):
- self.tf.add_file('tests/worker.py')
+ self.tf.add_file('tests/ziptest')
self.tf.close()
- self.check_for_file('test/tests/worker.py')
+ self.check_for_file('test/tests/ziptest')
def test_add_dir(self):
self.tf.add_file('tests/')
self.tf.close()
- self.check_for_file('test/tests/worker.py')
+ self.check_for_file('test/tests/ziptest')
def test_add_renamed(self):
- self.tf.add_file('tests/worker.py', dest='tests/worker_renamed.py')
+ self.tf.add_file('tests/ziptest', dest='tests/ziptest_renamed')
self.tf.close()
- self.check_for_file('test/tests/worker_renamed.py')
+ self.check_for_file('test/tests/ziptest_renamed')
def test_add_renamed_dir(self):
self.tf.add_file('tests/', 'tests_renamed/')
self.tf.close()
- self.check_for_file('test/tests_renamed/worker.py')
+ self.check_for_file('test/tests_renamed/ziptest')
def test_add_string(self):
self.tf.add_string('this is content', 'tests/string_test.txt')