Exemplo n.º 1
0
 def setUp(self):
     self.poem1 = limerick(poem1)
     self.poem5 = limerick(poem5)
Exemplo n.º 2
0
 def setUp(self):
     self.poem1 = limerick(poem1)
     self.poem2 = limerick(poem2)
     self.poem3 = limerick(poem3)
     self.poem4 = limerick(poem4)
#!/usr/bin/python
import sys, getopt
import limerick

beroep = ''
stad = ''

opts, args = getopt.getopt(sys.argv[1:],"b:d:s:l:",["beroep=","dier=","stad=","land="])

for opt, arg in opts:
    if opt in ("-b", "--beroep"):
        beroep = arg
    elif opt in ("-d", "--dier"):
        dier = arg
    elif opt in ("-s", "--stad"):
        stad = arg
    elif opt in ("-l", "--land"):
        land = arg

mylimerick = limerick.limerick()

#mylimerick.rhymes('geloven','verkopen')
mylimerick.create(argberoep=beroep,argstad=stad)
#mylimerick.create(stad='delden')
#print "yoyoyo"