# Class e.p.a.t.t.TestAmazonResourceProvider(TestCase):

Part of elisa.plugins.amazon.tests.test_func_resource_provider View In Hierarchy

This test case tests the AmazonResourceProvider class.

Line # | Kind | Name | Docs
--- | --- | --- | ---
43 | Method | setUp | Undocumented
51 | Method | tearDown | Undocumented
54 | Method | check_model_jpeg | Check that the passed model contains raw data for a JPEG image.
63 | Method | test_get_wrong_uri | Test trying to get a unexisting URI.
72 | Method | test_get_item_list | Test querying the Amazon Web Services to retrieve a list of items.
92 | Method | test_get_image | Test getting an image from the Amazon image server.
101 | Method | test_image_not_found | Test getting an image that does not exist from the Amazon image server.
110 | Method | test_multiple_images_retrieval_stress | Stress test for concurrent retrieval of multiple images.

def setUp(self):
Undocumented
def tearDown(self):
Undocumented
def check_model_jpeg(self, model):
Check that the passed model contains raw data for a JPEG image.

def test_get_wrong_uri(self):
Test trying to get a unexisting URI.

def test_get_item_list(self):
Test querying the Amazon Web Services to retrieve a list of items.

def test_get_image(self):
Test getting an image from the Amazon image server.

def test_image_not_found(self):
Test getting an image that does not exist from the Amazon image server.

def test_multiple_images_retrieval_stress(self):
Stress test for concurrent retrieval of multiple images.