From 32eeb200e24676ec111d62fb7457d486a673e905 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 3 Nov 2011 18:50:23 +0000 Subject: Combine unpack_chunk and unpack_stratum into unpack_binary --- morphlib/bins_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'morphlib/bins_tests.py') 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)) -- cgit v1.2.1