Revision e3b8f796 kamaki/clients/storage/test.py

b/kamaki/clients/storage/test.py
418 418
        FR.status_code = 404
419 419
        self.assertRaises(ClientError, self.client.list_objects)
420 420

  
421
    """
422 421
    @patch('%s.get' % client_pkg, return_value=FR())
423 422
    @patch('%s.set_param' % client_pkg)
424 423
    def test_list_objects_in_path(self, SP, get):
425 424
        FR.json = object_list
426 425
        path = '/some/awsome/path'
427
        acc = self.client.account
428
        cont = self.client.container
429
        SP = PC.set_param
426
        acc, cont = self.client.account, self.client.container
430 427
        self.client.list_objects_in_path(path)
431
        self.assertEqual(get.mock_calls, [
432
            call('/%s/%s' % (acc, cont), success=(200, 204, 404))])
428
        self.assertEqual(
429
            get.mock_calls[-1],
430
            call('/%s/%s' % (acc, cont), success=(200, 204, 404)))
433 431
        self.assertEqual(SP.mock_calls, [
434 432
            call('format', 'json'), call('path', path)])
435 433
        FR.status_code = 404
436 434
        self.assertRaises(ClientError, self.client.list_objects)
437
    """
438 435

  
439 436
if __name__ == '__main__':
440 437
    from sys import argv

Also available in: Unified diff