def test_info_autocorrect(self): """ Testing Artist info with correction """ self.artist = Artist("the stroke") info = self.artist.get_info(correct=True) self.utils.assert_response_content(info) assert_equal(info['artist']['name'], u"The Strokes")
def setup(self): self.artist = Artist("Foo fighters") self.auth = Auth(mysession) self.album = Album(artist=self.artist, album="Wasting Light") self.utils = Utils()
def test_object_exception(self): """ Testing Artist object creation failure """ self.artist = Artist()
def setup(self): self.artist = Artist("the strokes") self.utils = Utils()
def test_shouts_correct(self): """ Testing Artist shouts with correct parameter """ self.artist = Artist("the stroke") shouts = self.artist.get_shouts(correct=True) self.utils.assert_response_content(shouts) assert_equal(u"The Strokes", shouts['shouts']['@attr']['artist'])
def test_podcast_correct(self): """ Testing Artist podcast with correct parameter """ self.artist = Artist('The stroke') podcast = self.artist.get_podcast(correct=True) self.utils.assert_response_content(podcast)
def test_past_events_correct(self): """ Testing Artist past event with correct parameter """ self.artist = Artist("the stroke") past_events = self.artist.get_past_events(correct=True) self.utils.assert_response_content(past_events) assert_in(u"The Strokes", past_events['events']['@attr']['artist'])