def test_get_song_by_name(self): expected = Songs._ARMY actual = Songs.get('Liberty Bell (army band)') self.assertEquals(expected, actual)
def change_song(self, song_name): self.current_song.stop() self.current_song = Songs.get(song_name) self.current_song.play()