~chrismcginlay/ubuntu/natty/ubuntuone-control-panel/ubuntuone-control-panel-fix-715820

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/tests/__init__.py

  • Committer: Ken VanDine
  • Date: 2011-02-12 03:26:53 UTC
  • mfrom: (11.1.1 ubuntuone-control-panel)
  • Revision ID: ken.vandine@canonical.com-20110212032653-3q0c2phnvfxlby1o
Tags: 0.8.3-0ubuntu1
releasing version 0.8.3-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
     u'volume_id': u'1deb2874-3d28-46ae-9999-d5f48de9f460'},
162
162
]
163
163
 
 
164
ROOT_PATH = u'/home/tester/Ubuntu One'
 
165
SHARES_PATH = u'/home/tester/.local/share/ubuntuone/shares'
 
166
SHARES_PATH_LINK = ROOT_PATH + u'/Shared With Me'
 
167
 
164
168
SAMPLE_SHARES = [
 
169
 
165
170
    {u'accepted': u'True',
 
171
     u'subscribed': u'True',
166
172
     u'access_level': u'View',
167
173
     u'free_bytes': u'39892622746',
168
174
     u'generation': u'2704',
170
176
     u'node_id': u'c483f419-ed28-490a-825d-a8c074e2d795',
171
177
     u'other_username': u'otheruser',
172
178
     u'other_visible_name': u'Other User',
173
 
     u'path': u'/home/tester/.local/share/ubuntuone/shares/re from Other User',
 
179
     u'path': SHARES_PATH + u'/re from Other User',
174
180
     u'type': u'Share',
175
181
     u'volume_id': u'4a1b263b-a2b3-4f66-9e66-4cd18050810d'},
176
182
 
177
183
    {u'accepted': u'True',
 
184
     u'subscribed': u'True',
178
185
     u'access_level': u'Modify',
179
186
     u'free_bytes': u'39892622746',
180
187
     u'generation': u'2704',
182
189
     u'node_id': u'84544ea4-aefe-4f91-9bb9-ed7b0a805baf',
183
190
     u'other_username': u'otheruser',
184
191
     u'other_visible_name': u'Other User',
185
 
     u'path': u'/home/tester/.local/share/ubuntuone/shares/do from Other User',
 
192
     u'path': SHARES_PATH + u'/do from Other User',
186
193
     u'type': u'Share',
187
194
     u'volume_id': u'7d130dfe-98b2-4bd5-8708-9eeba9838ac0'},
 
195
 
 
196
    {u'name': u'yadda',
 
197
     u'subscribed': u'True',
 
198
     u'generation': u'36',
 
199
     u'other_username': u'https://login.ubuntu.com/+id/nHRnYmz',
 
200
     u'other_visible_name': u'',
 
201
     u'access_level': u'View',
 
202
     u'node_id': u'ca3a1cec-09d2-485e-9685-1a5180bd6441',
 
203
     u'volume_id': u'f1f1741f-ba49-46ef-b682-816c97e6e3d6',
 
204
     u'free_bytes': u'2146703403',
 
205
     u'path': SHARES_PATH + u'/yadda from ',
 
206
     u'accepted': u'True',
 
207
     u'type': u'Share'},
 
208
 
 
209
    {u'name': u'images',
 
210
     u'subscribed': u'True',
 
211
     u'generation': u'36',
 
212
     u'other_username':
 
213
     u'https://login.ubuntu.com/+id/nHRnYmz',
 
214
     u'other_visible_name': u'',
 
215
     u'access_level': u'Modify',
 
216
     u'node_id':
 
217
     u'b932f0d3-6998-423f-9225-7683a4adbd6f',
 
218
     u'volume_id':
 
219
     u'a73f889d-ffd3-4447-b351-f0d8130d1e1a',
 
220
     u'free_bytes': u'2146703403',
 
221
     u'path': SHARES_PATH + u'/images from ',
 
222
     u'accepted': u'True',
 
223
     u'type': u'Share'},
 
224
 
 
225
    {u'name': u'read-only',
 
226
     u'subscribed': u'True',
 
227
     u'generation': u'315',
 
228
     u'other_username': u'sharing-user',
 
229
     u'other_visible_name': u'A Sharing User',
 
230
     u'access_level': u'View',
 
231
     u'node_id': u'fd944823-e4c2-45a4-8c95-05997698bdbc',
 
232
     u'volume_id':
 
233
     u'64b43c96-6c7c-4135-994f-03a1a3774512',
 
234
     u'free_bytes': u'108786811673',
 
235
     u'path': SHARES_PATH + u'/read-only from A Sharing User',
 
236
     u'accepted': u'True',
 
237
     u'type': u'Share'},
 
238
 
 
239
    {u'name': u'read-write',
 
240
     u'subscribed': u'True',
 
241
     u'generation': u'314',
 
242
     u'other_username': u'sharing-user',
 
243
     u'other_visible_name': u'A Sharing User',
 
244
     u'access_level': u'Modify',
 
245
     u'node_id': u'e95662f7-9979-4745-8c21-8edaf893f143',
 
246
     u'volume_id': u'8896e8f8-57a3-4bf9-8558-fc54b7a3a777',
 
247
     u'free_bytes': u'108786811673',
 
248
     u'path': SHARES_PATH + u'/read-write from A Sharing User',
 
249
     u'accepted': u'True',
 
250
     u'type': u'Share'},
 
251
 
 
252
    {u'accepted': u'',
 
253
     u'access_level': u'View',
 
254
     u'free_bytes': u'',
 
255
     u'generation': u'',
 
256
     u'name': u'unaccepted',
 
257
     u'node_id': u'67b61c92-855c-49d8-8e09-6d201d15c999',
 
258
     u'other_username': u'bad guy',
 
259
     u'other_visible_name': u'',
 
260
     u'path': SHARES_PATH + u'/unaccepted from ',
 
261
     u'subscribed': u'',
 
262
     u'type': u'Share',
 
263
     u'volume_id': u'19963c95-c684-48db-8668-ebe6d820d5c3'},
188
264
]
189
265
 
190
266
SAMPLE_SHARED = [
196
272
     u'node_id': u'31e47530-9448-4f03-b4dc-4154fdf35225',
197
273
     u'other_username': u'otheruser',
198
274
     u'other_visible_name': u'Other User',
199
 
     u'path': u'/home/tester/Ubuntu One/bar',
 
275
     u'path': ROOT_PATH + u'/bar',
200
276
     u'type': u'Shared',
201
277
     u'volume_id': u'79584900-517f-4dff-b2f3-20e8c1e79365'},
202
278
]