diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-03-08 14:49:25 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-03-11 18:06:47 +0000 |
commit | bf1d9618cfd88430a2fd8bd4fcba0c7dd61c3ffc (patch) | |
tree | 5a3c0dcff19209bd7817b1edaad4b5a496290574 /morphlib/bins_tests.py | |
parent | 19984d4a4c34e9bcac23fda6831750698d39d95a (diff) | |
download | morph-bf1d9618cfd88430a2fd8bd4fcba0c7dd61c3ffc.tar.gz |
Test that chunk artifacts are NOT compressed
Diffstat (limited to 'morphlib/bins_tests.py')
-rw-r--r-- | morphlib/bins_tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/morphlib/bins_tests.py b/morphlib/bins_tests.py index 3288207b..d7ed1656 100644 --- a/morphlib/bins_tests.py +++ b/morphlib/bins_tests.py @@ -1,4 +1,4 @@ -# Copyright (C) 2011-2012 Codethink Limited +# Copyright (C) 2011-2013 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,6 +14,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +import gzip import os import shutil import stat @@ -134,6 +135,11 @@ class ChunkTests(BinsTest): self.assertEqual([x for x, y in self.recursive_lstat(self.instdir)], ['.', 'lib', 'lib/libfoo.so']) + def test_does_not_compress_artifact(self): + self.create_chunk(['bin']) + with gzip.open(self.chunk_file) as f: + self.assertRaises(IOError, f.read) + class ExtractTests(unittest.TestCase): |