diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-11-03 18:50:23 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-11-03 18:50:23 +0000 |
commit | 32eeb200e24676ec111d62fb7457d486a673e905 (patch) | |
tree | 9cedbde73716fc4a74d59e328d40a0c10dec28ad /morphlib/bins_tests.py | |
parent | f971aa9158fb9b076c0cdcc21ffa591c5d7d0074 (diff) | |
download | morph-32eeb200e24676ec111d62fb7457d486a673e905.tar.gz |
Combine unpack_chunk and unpack_stratum into unpack_binary
Diffstat (limited to 'morphlib/bins_tests.py')
-rw-r--r-- | morphlib/bins_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/bins_tests.py b/morphlib/bins_tests.py index 02706648..171b9652 100644 --- a/morphlib/bins_tests.py +++ b/morphlib/bins_tests.py @@ -89,14 +89,14 @@ class ChunkTests(unittest.TestCase): orig_files = recursive_lstat(self.instdir) morphlib.bins.create_chunk(self.instdir, self.chunk_file, ['.']) os.mkdir(self.unpacked) - morphlib.bins.unpack_chunk(self.chunk_file, self.unpacked) + morphlib.bins.unpack_binary(self.chunk_file, self.unpacked) self.assertEqual(orig_files, recursive_lstat(self.unpacked)) def test_uses_only_matching_names(self): self.populate_instdir() morphlib.bins.create_chunk(self.instdir, self.chunk_file, ['bin']) os.mkdir(self.unpacked) - morphlib.bins.unpack_chunk(self.chunk_file, self.unpacked) + morphlib.bins.unpack_binary(self.chunk_file, self.unpacked) self.assertEqual([x for x,y in recursive_lstat(self.unpacked)], ['.', 'bin', 'bin/foo']) self.assertEqual([x for x,y in recursive_lstat(self.instdir)], @@ -121,7 +121,7 @@ class StratumTests(unittest.TestCase): self.populate_instdir() morphlib.bins.create_stratum(self.instdir, self.stratum_file) os.mkdir(self.unpacked) - morphlib.bins.unpack_stratum(self.stratum_file, self.unpacked) + morphlib.bins.unpack_binary(self.stratum_file, self.unpacked) self.assertEqual(recursive_lstat(self.instdir), recursive_lstat(self.unpacked)) |