def test_bassist(): jaco = Bassist("Jaco Pastorious") assert jaco.name == "Jaco Pastorious" assert jaco.instrument == "bass" assert jaco.play_solo() == "thump, thump" assert jaco.__repr__() == "This is Bassist Jaco Pastorious" assert jaco.__str__() == "Bassist Jaco Pastorious"
def test_custom_solo_bass(): solo = "" aniruth = Bassist("Aniruth Ravichander", solo) assert aniruth.play_solo() == solo
def test_bassist_play_solo(): rehman = Bassist("AR Rehman") assert rehman.play_solo() == "Yeno Vaanilai Maaruthey"
def test_Bassist_fail(): musician6 = Bassist('Bass', 'Paradise City') actual = musician6.play_solo() expected = 'City' assert actual != expected