Beispiel #1
0
 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()
Beispiel #2
0
 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()
Beispiel #4
0
 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',
                         )