~salgado/linaro-image-tools/fix-beagle-console

« back to all changes in this revision

Viewing changes to linaro_media_create/tests/test_media_create.py

  • Committer: Guilherme Salgado
  • Date: 2011-01-18 10:16:07 UTC
  • mfrom: (239.1.1 remove-unneeded-code)
  • Revision ID: salgado@canonical.com-20110118101607-oew8cmbaovt2cers
Get rid of remove_binary_dir.py as the binary/ dir is now created in a temp directory that is always removed when the script exits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    run_sfdisk_commands,
50
50
    setup_partitions,
51
51
    )
52
 
from linaro_media_create.remove_binary_dir import remove_dir
53
52
from linaro_media_create.rootfs import (
54
53
    create_flash_kernel_config,
55
54
    has_space_left_for_swap,
153
152
        self.assertEqual(expected, boot_cmd)
154
153
 
155
154
 
156
 
class TestRemoveBinaryDir(TestCaseWithFixtures):
157
 
 
158
 
    def setUp(self):
159
 
        super(TestRemoveBinaryDir, self).setUp()
160
 
        self.temp_dir_fixture = CreateTempDirFixture()
161
 
        self.useFixture(self.temp_dir_fixture)
162
 
 
163
 
    def test_remove_dir(self):
164
 
        rc = remove_dir(
165
 
            self.temp_dir_fixture.get_temp_dir(), as_root=False)
166
 
        self.assertEqual(rc, 0)
167
 
        self.assertFalse(
168
 
            os.path.exists(self.temp_dir_fixture.get_temp_dir()))
169
 
 
170
 
 
171
155
class TestUnpackBinaryTarball(TestCaseWithFixtures):
172
156
 
173
157
    def setUp(self):