def test_bassist(): flea = Bassist("Flea") assert flea.name == "Flea" assert flea.get_instrument() == "bass"
def test_musician_get_instrument(): test_musician1 = Guitarist("test1") test_musician2 = Bassist("test1") assert test_musician1.get_instrument() == 'Guitar' assert test_musician2.get_instrument() == 'Bass'