コード例 #1
0
 def test_user_login(self):
     wynk = MusicPlayer(
         10, 9, 4, 'Harshi', 'WYNK08', 'premium', ['Pachai Nirame'],
         ['descpasito'], ['Tamil', 'Hindi', 'English'], 1,
         ['Premium', 'Free', 'Subscribed'],
         ['Anirudh', 'ARR', 'Ankit Tiwari'], {
             'Anirudh': ['Yaanji', 'VIP'],
             'Dhanush': ['Maruvarthai', 'Vada chennai', 'Visiri'],
             'Hindi': ['ADHM', 'Dekthe', 'Barish']
         }, ['Nostalgic', 'Love', 'English'], [])
     song = WynkSongs('mazhai kuruvi', 'MK', 4, 'ARR', 'Tamil', 'STR',
                      'CCV', '5 mins', 'xx', 10)
     check = wynk.check_signin_name('haRsH')
     self.assertEqual(check, False)
コード例 #2
0
 def test_delete_songs(self):
     wynk = MusicPlayer(
         10, 9, 4, 'Harshi', 'WYNK08', 'premium', ['Pachai Nirame'],
         ['descpasito'], ['Tamil', 'Hindi', 'English'], 1,
         ['Premium', 'Free', 'Subscribed'],
         ['Anirudh', 'ARR', 'Ankit Tiwari'], {
             'Anirudh': ['Yaanji', 'VIP'],
             'Dhanush': ['Maruvarthai', 'Vada chennai', 'Visiri'],
             'Hindi': ['ADHM', 'Dekthe', 'Barish']
         }, ['Nostalgic', 'Love', 'English'], [])
     song = WynkSongs('mazhai kuruvi', 'MK', 4, 'ARR', 'Tamil', 'STR',
                      'CCV', '5 mins', 'xx', 10)
     download = wynk.delete_song('VIP')
     self.assertNotEqual(download, ['Pachai Nirame'])