# alternativ implementasjon, ikke pensum from alt_spiller import Spiller, SymbolUgyldigError def test_spiller(): spiller = None try: spiller = Spiller("A") except SymbolUgyldigError as e: print(e) assert spiller is None, f"Test: ugyldig symbol skal gi None, men er n? {spiller}" spiller = Spiller("X") assert spiller.hent_symbol() == "X", f"Test: symbol skal v?re 'X', men fikk {spiller.hent_symbol()}" test_spiller()