Revision 133e3fcf snf-pithos-app/pithos/api/manage_accounts/tests.py

b/snf-pithos-app/pithos/api/manage_accounts/tests.py
195 195
                                                   'object1',
196 196
                                                   'application/octet-stream',
197 197
                                                   data))
198
        self.assertEquals(sorted(versions[:-1]),
198
        self.assertEquals(sorted([i[0] for i in versions[:-1]]),
199 199
                          self.utils.list_past_versions('account1',
200 200
                                                        'container1',
201 201
                                                        'object1'))
......
226 226
                               dry=False, silent=True)
227 227

  
228 228
        expected = {'meta': meta,
229
                    'versions': versions[:-1],
229
                    'versions': [i[0] for i in versions[:-1]],
230 230
                    'permissions': permissions}
231 231
        self._verify_object('account1', 'container1', 'object1', expected)
232 232

  
......
275 275
                    'permissions': permissions}
276 276
        for c, o_dict in versions.iteritems():
277 277
            for o, versions in o_dict.iteritems():
278
                expected['versions'] = versions[:-1]
278
                expected['versions'] = [i[0] for i in versions[:-1]]
279 279
                self._verify_object('account1', c, o, expected)
280 280

  
281 281
    def test_merge_existing_dest_container(self):
......
314 314
            self.fail(e)
315 315

  
316 316
        expected = {'meta': meta,
317
                    'versions': versions[:-1],
317
                    'versions': [i[0] for i in versions[:-1]],
318 318
                    'permissions': permissions}
319 319
        self._verify_object('account1', 'container1', 'object1', expected)
320 320

  
......
361 361

  
362 362
        expected = {'meta': meta,
363 363
                    'permissions': permissions,
364
                    'versions': versions[:-1]}
364
                    'versions': [i[0] for i in versions[:-1]]}
365 365
        self._verify_object('account1', container, object, expected,
366 366
                            strict=False)
367 367

  

Also available in: Unified diff