def test_updates_responsible_and_responsible_client(self):
        self.assign_forwarding('client2', 'Fake Response')

        self.assertEquals('client2', self.forwarding.responsible_client)
        self.assertEquals('client2',
                          task2sqltask(self.forwarding).assigned_client)

        self.assertEquals('inbox:client2', self.forwarding.responsible)
        self.assertEquals('inbox:client2',
                          task2sqltask(self.forwarding).responsible)
    def test_updates_responsible(self):

        self.assign_task('James', 'james.bond', '')

        self.assertEquals('james.bond', self.task.responsible)
        self.assertEquals('james.bond',
                          task2sqltask(self.task).responsible)
    def test_assign_sets_forwarding_in_open_state(self):
        self.assign_forwarding('client2', 'Fake Response')

        wf_tool = getToolByName(self.portal, 'portal_workflow')
        self.assertEquals('forwarding-state-open',
                          wf_tool.getInfoFor(self.forwarding, 'review_state'))

        self.assertEquals('forwarding-state-open',
                          task2sqltask(self.forwarding).review_state)
Beispiel #4
0
    def test_updates_responsible(self):

        self.assign_task('James', 'james.bond', '')

        self.assertEquals('james.bond', self.task.responsible)
        self.assertEquals('james.bond', task2sqltask(self.task).responsible)
Beispiel #5
0
    def assert_listing_results(self, viewname, results, ):
        view = self.inbox.restrictedTraverse('tabbedview_view-%s' % (viewname))
        view.update()

        self.assertEquals([task2sqltask(obj) for obj in results],
                          view.contents)