Exemplo n.º 1
0
 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")
Exemplo n.º 2
0
    def setup(self):

        self.artist = Artist("Foo fighters")
        self.auth = Auth(mysession)
        self.album = Album(artist=self.artist, album="Wasting Light")
        self.utils = Utils()
Exemplo n.º 3
0
 def test_object_exception(self):
     """ Testing Artist object creation failure """
     self.artist = Artist()
Exemplo n.º 4
0
 def setup(self):
     self.artist = Artist("the strokes")
     self.utils = Utils()
Exemplo n.º 5
0
 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'])
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
 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'])