def testNextAlbumWhenCurrentIsLast_2_1(self):
     self.getCurrentSong=self.playlist_2[9]
     client = MockClient(self.getCurrentSong, self.playlist_2)
     playlistManager = PlaylistManager(client);
     command = PlayNextAlbumCommand(playlistManager)
     command.execute()        
     self.assertEqual(client.getCurrentSong()['pos'], str(12));
 def testPreviousAlbumWhenCurrentIsNotFirst_2(self):
     self.getCurrentSong=self.playlist_2[13]
     client = MockClient(self.getCurrentSong, self.playlist_2)
     playlistManager = PlaylistManager(client);
     command = PlayPreviousAlbumCommand(playlistManager)
     command.execute()        
     self.assertEqual(client.getCurrentSong()['pos'], str(9));
 def testPreviousSongWhenCurrentIsNotFirst(self):
     self.getCurrentSong=self.playlist_1[8]
     client = MockClient(self.getCurrentSong, self.playlist_1)
     playlistManager = PlaylistManager(client);
     command = PlayPreviousSongCommand(playlistManager)
     command.execute()        
     self.assertEqual(client.getCurrentSong()['pos'], str(7));