'Test that we fail to restore target configuration.'

@mock.patch('cinder.cmd.rtstool.restore_from_file')
def test_restore_error(self, restore_from_file):

    restore_from_file.side_effect = OSError
    self.assertRaises(OSError, cinder_rtstool.restore_from_file, mock.sentinel.filename)
