Esempio n. 1
0
 def format_test(self, blockdev):
     """Test the format task."""
     DASDFormatTask(["/dev/sda", "/dev/sdb"]).run()
     blockdev.s390.dasd_format.assert_has_calls([
         call("/dev/sda"),
         call("/dev/sdb")
     ])
Esempio n. 2
0
    def format_with_task(self, dasds):
        """Format specified DASD disks.

        :param dasds: a list of disk names
        :return: a DBus path to a task
        """
        return DASDFormatTask(dasds)
Esempio n. 3
0
    def format_with_task(self, dasds):
        """Format specified DASD disks.

        :param dasds: a list of disk names
        :return: a DBus path to a task
        """
        task = DASDFormatTask(dasds)
        path = self.publish_task(DASD.namespace, task)
        return path