Exemplo n.º 1
0
def get_podcast_data(podcast):
    return parser_object(PodcastData, call_api('getPodcastData', { 'podcast': podcast }))
Exemplo n.º 2
0
def get_podcast_data(podcast):
    return parser_object(PodcastData,
                         call_api('getPodcastData', {'podcast': podcast}))
Exemplo n.º 3
0
 def test_missing_attribute(self):
     with pytest.raises(MissingAttributeError):
         parser_object(MockSingle, {})
Exemplo n.º 4
0
 def test_call_clazz(self):
     global mockCalled; mockCalled = 0
     parser_object(MockCounter, [{}, {}])
     assert mockCalled == 1
Exemplo n.º 5
0
 def test_missing_attribute(self):
     with pytest.raises(MissingAttributeError):
         parser_object(MockSingle, {})
Exemplo n.º 6
0
 def test_call_clazz(self):
     global mockCalled
     mockCalled = 0
     parser_object(MockCounter, [{}, {}])
     assert mockCalled == 1