def METHOD_NAME(teamlead):
    """
    Change the preferred language to a wrong value. Expect an exception.
    """
    with pytest.raises(AssertionError) as excinfo:
        teamlead.preferred_language = "C++"
    msg = str(excinfo.value)
    assert 'self.preferred_language == "Python" or self.preferred_language == "Java"' in msg