# Class e.p.f.t.t.TestFlickrResourceProvider(TestCase):

Part of elisa.plugins.flickr.tests.test_resource_provider View In Hierarchy

This test case tests the FlickrResourceProvider class.

Line # | Kind | Name | Docs
--- | --- | --- | ---
51 | Method | setUp | Undocumented
56 | Method | tearDown | Undocumented
59 | Method | test_invalid_get_uri | Test an invalid URI passed to the get method.
68 | Method | test_invalid_post_uri | Test an invalid URI passed to the post method.
77 | Method | test_invalid_post_uri_2 | Test an invalid URI passed to the post method.
86 | Method | test_api_call_echo | Test a simple API call.
108 | Method | test_api_call_no_key | Test a simple API call without providing an API key.
117 | Method | test_api_call_invalid_key | Test a simple API call providing an invalid API key.
129 | Method | test_fill_response_model_1 | Test that the response model is correctly filled when the response to
148 | Method | test_fill_response_model_2 | Test that the response model is correctly filled when the response to
168 | Method | test_fill_response_model_3 | Test that the response model is correctly filled when the response to
185 | Method | test_fill_response_model_4 | Test that the response model is correctly filled when the response to
205 | Method | test_image_retrieval | Test retrieving an image from its complete URL.
223 | Method | test_invalid_image_retrieval | Test retrieving an image that does not exist.
233 | Method | test_multiple_images_retrieval | Test concurrent retrieval of multiple images from the same farm.
253 | Method | test_multiple_images_retrieval_stress | Stress test for concurrent retrieval of multiple images from the same
289 | Method | test_multiple_images_concurrent_retrieval | Test concurrent retrieval of multiple images from different farms.
309 | Method | test_authenticated_api_call | Test an authenticated call to the Flickr API.
323 | Method | test_upload_then_delete_photo | Test uploading a photo to the user account, and then deleting it.
350 | Method | test_upload_fails | Test a failing photo upload.
365 | Method | test_cancel_request_pipelined | Test cancelling a request when the server supports request pipelining.
407 | Method | test_cancel_request_not_pipelined | Test cancelling a request when the server does not support request

def setUp(self):
Undocumented
def tearDown(self):
Undocumented
def test_invalid_get_uri(self):
Test an invalid URI passed to the get method.

def test_invalid_post_uri(self):
Test an invalid URI passed to the post method.

def test_invalid_post_uri_2(self):
Test an invalid URI passed to the post method.

def test_api_call_echo(self):
Test a simple API call.

def test_api_call_no_key(self):
Test a simple API call without providing an API key.

def test_api_call_invalid_key(self):
Test a simple API call providing an invalid API key.

def test_fill_response_model_1(self):
Test that the response model is correctly filled when the response to the query is a list of photos.

def test_fill_response_model_2(self):
Test that the response model is correctly filled when the response to the query is a photo.

def test_fill_response_model_3(self):
Test that the response model is correctly filled when the response to the query is a list of tags.

def test_fill_response_model_4(self):
Test that the response model is correctly filled when the response to the query is a list of sizes for a photo.

def test_image_retrieval(self):
Test retrieving an image from its complete URL.

def test_invalid_image_retrieval(self):
Test retrieving an image that does not exist.

def test_multiple_images_retrieval(self):
Test concurrent retrieval of multiple images from the same farm.

def test_multiple_images_retrieval_stress(self):
Stress test for concurrent retrieval of multiple images from the same farm.

def test_multiple_images_concurrent_retrieval(self):
Test concurrent retrieval of multiple images from different farms.

def test_authenticated_api_call(self):
Test an authenticated call to the Flickr API.

def test_upload_then_delete_photo(self):
Test uploading a photo to the user account, and then deleting it.

def test_upload_fails(self):
Test a failing photo upload.

def test_cancel_request_pipelined(self):
Test cancelling a request when the server supports request pipelining. That is the case of the Flickr API server.

def test_cancel_request_not_pipelined(self):
Test cancelling a request when the server does not support request pipelining. That is the case of the image servers.