Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/i/z/izug.ticketbox-4.5.8/izug/ticketbox/tests/helpers.py   izug.ticketbox(Download)
from izug.ticketbox.tests.data import AREA_DATA
from izug.ticketbox.tests.data import PRIORITY_DATA
from izug.ticketbox.tests.data import RELEASE_DATA
from izug.ticketbox.tests.data import STATE_DATA
from plone.app.testing import TEST_USER_ID
    ticketbox.setIndividualIdentifier("ABC123")
    ticketbox.setAvailableStates(STATE_DATA)
    ticketbox.setAvailableReleases(RELEASE_DATA)
    ticketbox.setAvailableAreas(AREA_DATA)
    ticketbox.setAvailablePriorities(PRIORITY_DATA)
    ticket.getField('area').set(ticket, AREA_DATA[data_index]['id'])
    ticket.getField('priority').set(ticket, PRIORITY_DATA[data_index]['id'])
    ticket.getField('releases').set(ticket, RELEASE_DATA[data_index]['id'])
    ticket.getField('responsibleManager').set(ticket, "test_user_1_")