Changed pytest.raises(ValueError)s to suit something she described in class. You have to repeat pytest.raises(ValueError): in order for it to work.