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'])
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'] )
def setup(self, mock_exists): mock_exists.return_value = True self.squashfs = FileSystemSquashFs(mock.Mock(), 'root_dir')