Ejemplo n.º 1
0
    def test_search_by_album_name(self):
        from magnatune.search import search_album
        results = search_album(name='We Are Complex')

        self.assertEqual(len(results), 1)
        self.assertEqual(results[0].artist.name, 'Curl')
Ejemplo n.º 2
0
 def test_wrong_arg(self):
     from magnatune.search import search_album
     with self.assertRaises(TypeError):
         list(search_album(ratatouille='plonk'))