Ejemplo n.º 1
0
class TestFileSystemSquashfs(object):
    @patch('os.path.exists')
    def setup(self, mock_exists):
        mock_exists.return_value = True
        self.squashfs = FileSystemSquashFs(mock.Mock(), 'root_dir')

    @patch('kiwi.filesystem_squashfs.Command.run')
    def test_create_on_file(self, mock_command):
        self.squashfs.create_on_file('myimage', 'label')
        mock_command.assert_called_once_with(
            ['mksquashfs', 'root_dir', 'myimage'])
Ejemplo n.º 2
0
class TestFileSystemSquashfs(object):
    @patch('os.path.exists')
    def setup(self, mock_exists):
        mock_exists.return_value = True
        self.squashfs = FileSystemSquashFs(mock.Mock(), 'root_dir')

    @patch('kiwi.filesystem_squashfs.Command.run')
    def test_create_on_file(self, mock_command):
        self.squashfs.create_on_file('myimage', 'label')
        mock_command.assert_called_once_with(
            ['mksquashfs', 'root_dir', 'myimage']
        )
Ejemplo n.º 3
0
 def setup(self, mock_exists):
     mock_exists.return_value = True
     self.squashfs = FileSystemSquashFs(mock.Mock(), 'root_dir')
Ejemplo n.º 4
0
 def setup(self, mock_exists):
     mock_exists.return_value = True
     self.squashfs = FileSystemSquashFs(mock.Mock(), 'root_dir')