예제 #1
0
 def test_year_filtre(self):
     self.assertEqual('artists 0 100 tags:lytiqwaSesucj year:1994\n',
                      msg_format.artists(year=1994))
예제 #2
0
 def test_multiple_filtres(self):
     self.assertEqual(
         'artists 0 100 tags:lytiqwaSesucj artist_id:4 year:1994\n',
         msg_format.artists(artist_id=4, year=1994))
예제 #3
0
 def test_genre_filtre(self):
     self.assertEqual('artists 0 100 tags:lytiqwaSesucj genre_id:4\n',
                      msg_format.artists(genre_id=4))
예제 #4
0
 def test_track_filtre(self):
     self.assertEqual('artists 0 100 tags:lytiqwaSesucj track_id:4\n',
                      msg_format.artists(track_id=4))
예제 #5
0
 def test_album_filtre(self):
     self.assertEqual('artists 0 100 tags:lytiqwaSesucj album_id:4\n',
                      msg_format.artists(album_id=4))
예제 #6
0
 def test_no_filtres_override(self):
     self.assertEqual('artists 5 11 tags:lytiqwaSesucj\n',
                      msg_format.artists(5, 11))
예제 #7
0
 def test_no_filtres_defaults(self):
     self.assertEqual('artists 0 100 tags:lytiqwaSesucj\n',
                      msg_format.artists())