Exemplo n.º 1
0
 def it_correctly_factors_in_laborers_for_teamster_requirements():
     cov = Covenant()
     cov.covenfolken.add_covenfolk("Arg", "magi")
     cov.covenfolken.add_covenfolk("gle", "magi")
     cov.covenfolken.add_covenfolk("Barg", "magi")
     assert cov.meets_teamster_minimum() == False
     cov.covenfolken.add_covenfolk("le", "dependant")
     cov.covenfolken.add_covenfolk("woo", "dependant")
     cov.covenfolken.add_covenfolk("tem", "teamster")
     assert cov.meets_teamster_minimum() == False
     cov.covenfolken.add_covenfolk("lab", "laborer")
     cov.covenfolken.add_covenfolk("orer", "laborer")
     assert cov.meets_teamster_minimum() == False
Exemplo n.º 2
0
 def it_can_verify_too_few_laborers_exist():
     cov = Covenant()
     cov.covenfolken.add_covenfolk("Arg", "magi")
     assert cov.meets_teamster_minimum() == False
     cov.covenfolken.add_covenfolk("Teamster", "teamster")
     assert cov.meets_teamster_minimum() == True