# Class e.p.y.t.t.TestYoutubeResourceProvider(TestCase):

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

This test case tests the YoutubeResourceProvider class.

Line # | Kind | Name | Docs
--- | --- | --- | ---
46 | Method | setUp | Undocumented
54 | Method | tearDown | Undocumented
57 | Method | test_get_wrong_uri | Test trying to get a unexisting URI.
66 | Method | test_get_top_rated | Test a simple API call.
81 | Method | test_get_playable_wrong_uri | Test trying to retrieve a playable model from a wrong video id.
91 | Method | test_get_playable_model | Test retrieving the playable model for a given video.
116 | Method | test_get_playable_model_with_context_model | Test retrieving the playable model for a given video, with a
136 | Method | test_get_thumbnail | Test retrieving a video thumbnail.
156 | Method | test_post | Test a POST request.

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

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

def test_get_playable_wrong_uri(self):
Test trying to retrieve a playable model from a wrong video id.

def test_get_playable_model(self):
Test retrieving the playable model for a given video.

def test_get_playable_model_with_context_model(self):
Test retrieving the playable model for a given video, with a contextual model.

def test_get_thumbnail(self):
Test retrieving a video thumbnail.

def test_post(self):
Test a POST request.