Ejemplo n.º 1
0
def given_some_duties_are_assigned_to_another_volunteer(step):
    create_volunteer("Other Volunteer")
    volunteer = the('Volunteer', name="Other Volunteer")
    duty_names = [h['Name'] for h in step.hashes]
    for duty_name in duty_names:
        duty = the('Duty', name=duty_name)
        duty.assigned_to = volunteer
        duty.save()
Ejemplo n.º 2
0
def and_a_doctor_who_is_qualified_for_the_first_aid_duty(step):
    attribute_name = "doctor"
    create_volunteer("Sam Samson", [attribute_name])
Ejemplo n.º 3
0
def when_he_creates_a_volunteer_called_group1(step, volunteer_name):
    create_volunteer(volunteer_name)