def afterSetUp(self): ECQTestCase.afterSetUp(self) self.membership = self.portal.portal_membership self.membership.addMember('member', 'secret', ['Member'], []) self.membership.addMember('manager', 'secret', ['Manager'], []) self.login('manager') self._dummy = self.createDummy()
def afterSetUp(self): ECQTestCase.afterSetUp(self) self.membership = self.portal.portal_membership self.membership.addMember("member", "secret", ["Member"], []) self.membership.addMember("manager", "secret", ["Manager"], []) self.login("manager") self._dummy = self.createDummy()
def afterSetUp(self): """ create a few users and an empty quiz """ ECQTestCase.afterSetUp(self) self.membership = self.portal.portal_membership self.membership.addMember('member', 'secret', ['Member'], []) self.membership.addMember('manager', 'secret', ['Manager'], []) self.login('manager') self._dummy = self.createEmptyQuiz()
def afterSetUp(self): ECQTestCase.afterSetUp(self) self.typeReference = 'ECQReference' self.typeResult = 'ECQResult' self.typeQuiz = 'ECQuiz' self.typeGroup = 'ECQGroup' self.typeQuestions = (#'ECQBaseQuestion', 'ECQExtendedTextQuestion', 'ECQMCQuestion', #'ECQPointsQuestion', #'ECQRatingQuestion', 'ECQScaleQuestion', #'ECQSelectionQuestion', ) self.typeAnswers = (#'ECQBaseAnswer', #'ECQCorrectAnswer', 'ECQMCAnswer', 'ECQScaleAnswer', #'ECQSelectionAnswer', )