from Blomsterkasse import Blomsterkasse from blomst import Blomst def hovedprogam(): blomsterkasse = Blomsterkasse(4) blaaklokke = Blomst("blaaklokke", 15) lilje = Blomst("lilje", 9) assert blomsterkasse.plantBlomst(blaaklokke) for i in range(10): blomsterkasse.nesteDag() assert blomsterkasse.plantBlomst(lilje) assert blomsterkasse.antallBlomster() == 2 blomsterkasse.ryddIBedd() assert blomsterkasse.antallBlomster() == 1 blomsterkasse.nesteDag() solsikke = Blomst("solsikke", 50) tulipan = Blomst("tulipan", 10) assert blomsterkasse.plantBlomst(solsikke) assert blomsterkasse.plantBlomst(tulipan) blomsterkasse.vannAlleBlomster() blomsterkasse.nesteDag() print(blomsterkasse) rose = Blomst("Rose", 10) assert blomsterkasse.plantBlomst(rose) hovedprogam()