def create_live_os_source_test(self, publisher): """Test creation of the Live OS source module.""" source_path = self.payload_interface.CreateSource( SourceType.LIVE_OS_IMAGE.value) check_dbus_object_creation(self, source_path, publisher, LiveOSSourceModule)
def device_tree_test(self, publisher): """Test the device tree.""" self.module.on_storage_changed(Mock()) path = self.interface.GetDeviceTree() obj = check_dbus_object_creation(self, path, publisher, ResizableDeviceTreeModule) self.assertEqual(obj.implementation.storage, self.module.storage) self.module.on_partitioning_reset() self.assertEqual(obj.implementation.storage, self.module.storage) self.module.on_storage_changed(Mock()) self.assertEqual(obj.implementation.storage, self.module.storage)
def device_tree_test(self, publisher): """Test the device tree.""" self.module.on_storage_changed(create_storage()) path = self.interface.GetDeviceTree() check_dbus_object_creation(self, path, publisher, DeviceTreeSchedulerModule)