class TestChartLyricsModel (unittest.TestCase):

    def setUp (self):
        self._model = ChartLyricsModel()
        
    def test_search_lyrics(self):
        time.sleep(20)
        self.result, self.message = self._model.search_lyrics(
            "Michael Jackson", "bad")
        self.assertIsInstance(self.result,list)
        self.assertIsInstance(self.result[0],dict)
        self.assertEqual(self.result[0]['Artist'], "Michael Jackson")        


    def test_download_lyrics(self):
        result,message = self._model.download_lyrics('1710',
                                             '2a3ea713422cbc97470b0c38c6e5a552')
        self.assertIsInstance(result, str)
 def setUp (self):
     self._model = ChartLyricsModel()