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