# Path: wye/base/constants.py
# class WorkshopStatus:
#     _DRAFT = [1, "Draft"]
#     _REQUESTED = [2, "Workshop Requested"]
#     _ACCEPTED = [3, "Workshop Accepted "]
#     _DECLINED = [4, "Workshop Declined"]
#     _FEEDBACK_PENDING = [5, "FeedBack Pending"]
#     _HOLD = [6, "Workshop On Hold"]
#     _COMPLETED = [7, "Workshop Completed"]
#     _UNABLE_TO_COMPLETE = [8, "Workshop unable to complete"]
# 
# Path: tests/factories.py
# class Factory(factory.DjangoModelFactory):
#     class Meta:
# class UserTypeFactory(Factory):
#     class Meta:
# class UserFactory(Factory):
#     class Meta:
# class StateFactory(Factory):
#     class Meta:
# class LocationFactory(Factory):
#     class Meta:
# class OrganisationFactory(Factory):
#     class Meta:
# class RegionalLeadFactory(Factory):
#     class Meta:
# class WorkshopSectionFactory(Factory):
#     class Meta:
# class WorkshopFactory(Factory):
#     class Meta:
# class WorkshopRatingValuesFactory(Factory):
#     class Meta:
# def create_usertype(**kwargs):
# def create_user(**kwargs):
# def create_organisation(**kwargs):
# def create_regional_lead(**kwargs):
# def create_workshop(**kwargs):
# def create_workshop_rating(**kwargs):
# def create_workshop_section(**kwargs):
# def create_locaiton(**kwargs):
# def create_state(**kwargs):


from datetime import datetime, timedelta
from wye.base.constants import WorkshopStatus
from tests import factories as f
import re
    user.save()
    url = base_url + '/workshop/'
    browser.visit(url)
    browser.fill('login', user.email)
    browser.fill('password', '123123')
    browser.find_by_css('[type=submit]')[0].click()
    assert len(outbox) == 1
    mail = outbox[0]
    confirm_link = re.findall(r'http.*/accounts/.*/', mail.body)
    assert confirm_link
    browser.visit(confirm_link[0])
    assert browser.title, "Confirm E-mail Address"
    browser.find_by_css('[type=submit]')[0].click()

    user.profile.usertype.clear()
    user.profile.usertype.add(poc_type)
    user.save()
    location = f.create_locaiton(state=state1)
    org = f.create_organisation(location=location)
    org.user.add(user)
    user.profile.interested_locations.add(org.location)
    user.profile.location = org.location
    user.profile.occupation = 'occupation'
    user.profile.work_location = 'work_location'
    user.profile.work_experience = 1
    user.profile.save()
    org.save()

    workshop = f.create_workshop(
        requester=org,

# Path: wye/base/constants.py
# class WorkshopStatus:
#     _DRAFT = [1, "Draft"]
#     _REQUESTED = [2, "Workshop Requested"]
#     _ACCEPTED = [3, "Workshop Accepted "]
#     _DECLINED = [4, "Workshop Declined"]
#     _FEEDBACK_PENDING = [5, "FeedBack Pending"]
#     _HOLD = [6, "Workshop On Hold"]
#     _COMPLETED = [7, "Workshop Completed"]
#     _UNABLE_TO_COMPLETE = [8, "Workshop unable to complete"]
# 
# Path: tests/factories.py
# class Factory(factory.DjangoModelFactory):
#     class Meta:
# class UserTypeFactory(Factory):
#     class Meta:
# class UserFactory(Factory):
#     class Meta:
# class StateFactory(Factory):
#     class Meta:
# class LocationFactory(Factory):
#     class Meta:
# class OrganisationFactory(Factory):
#     class Meta:
# class RegionalLeadFactory(Factory):
#     class Meta:
# class WorkshopSectionFactory(Factory):
#     class Meta:
# class WorkshopFactory(Factory):
#     class Meta:
# class WorkshopRatingValuesFactory(Factory):
#     class Meta:
# def create_usertype(**kwargs):
# def create_user(**kwargs):
# def create_organisation(**kwargs):
# def create_regional_lead(**kwargs):
# def create_workshop(**kwargs):
# def create_workshop_rating(**kwargs):
# def create_workshop_section(**kwargs):
# def create_locaiton(**kwargs):
# def create_state(**kwargs):


# Path: tests/functional/workshop/test_workshop_flow.py
from datetime import datetime, timedelta
from wye.base.constants import WorkshopStatus
from tests import factories as f
import re

    user.save()
    url = base_url + '/workshop/'
    browser.visit(url)
    browser.fill('login', user.email)
    browser.fill('password', '123123')
    browser.find_by_css('[type=submit]')[0].click()
    assert len(outbox) == 1
    mail = outbox[0]
    confirm_link = re.findall(r'http.*/accounts/.*/', mail.body)
    assert confirm_link
    browser.visit(confirm_link[0])
    assert browser.title, "Confirm E-mail Address"
    browser.find_by_css('[type=submit]')[0].click()

    user.profile.usertype.clear()
    user.profile.usertype.add(poc_type)
    user.save()
    location = f.create_locaiton(state=state1)
    org = f.create_organisation(location=location)
    org.user.add(user)
    user.profile.interested_locations.add(org.location)
    user.profile.location = org.location
    user.profile.occupation = 'occupation'
    user.profile.work_location = 'work_location'
    user.profile.work_experience = 1
    user.profile.save()
    org.save()

    workshop = f.create_workshop(
        requester=org,

        status=WorkshopStatus.REQUESTED)