diff options
author | Jesse Jaggars <jjaggars@redhat.com> | 2012-02-28 12:22:11 -0600 |
---|---|---|
committer | Jesse Jaggars <jjaggars@redhat.com> | 2012-02-29 16:38:33 -0600 |
commit | 4b9412ce0f18da79b71d3abbce343848dfa3a434 (patch) | |
tree | cdbc602c525afd230321e0610c56166904b6b1e7 /tests/archive_tests.py | |
parent | a0c94dff75fb0ab26e003885379ef6ddd51ca4f0 (diff) | |
download | sos-4b9412ce0f18da79b71d3abbce343848dfa3a434.tar.gz |
Removing many unused bits
Diffstat (limited to 'tests/archive_tests.py')
-rw-r--r-- | tests/archive_tests.py | 24 |
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') |