~nataliabidart/ubuntuone-control-panel/simpler-devices-backend

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/integrationtests/test_sd_client/test_linux.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2011-06-03 12:16:31 UTC
  • mfrom: (155.2.8 subscribe-folders)
  • Revision ID: tarmac-20110603121631-2bgyjrib1zupa5fi
- Cloud folders can now be subscribed/unsubscribed from the UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
    def _set_share_attr(cls, share_id, attr, value):
114
114
        """Set values to shares."""
115
115
        if share_id not in cls.shares:
116
 
            raise CustomError('share_id not in shares.')
 
116
            raise CustomError('share_id %r not in shares %r.' %
 
117
                              (share_id, cls.shares))
117
118
 
118
119
        value = sd_dbus_iface.bool_str(value)
119
120
        cls.shares[share_id][attr] = value
123
124
    def _set_folder_attr(cls, folder_id, attr, value):
124
125
        """Set values to folders."""
125
126
        if folder_id not in cls.folders:
126
 
            raise CustomError('folder_id not in folders.')
 
127
            raise CustomError('folder_id %r not in folders %r.' %
 
128
                              (folder_id, cls.folders))
127
129
 
128
130
        value = sd_dbus_iface.bool_str(value)
129
131
        cls.folders[folder_id][attr] = value