@@ -579,6 +579,111 @@ def testFollowup(self):
579579nosy: +john, mary
580580status: unread -> chatting
581581
582+ _______________________________________________________________________
583+ Roundup issue tracker <[email protected] > 584+ <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
585+ _______________________________________________________________________
586+ ''' )
587+
588+ def testFollowupNoSubjectChange (self ):
589+ self .db .config .MAILGW_SUBJECT_UPDATES_TITLE = 'no'
590+ self .doNewIssue ()
591+
592+ self ._handle_mail ('''Content-Type: text/plain;
593+ charset="iso-8859-1"
594+ 595+ 596+ Message-Id: <followup_dummy_id>
597+ In-Reply-To: <dummy_test_message_id>
598+ Subject: [issue1] Wrzlbrmft... [assignedto=mary; nosy=+john]
599+
600+ This is a followup
601+ ''' )
602+ l = self .db .issue .get ('1' , 'nosy' )
603+ l .sort ()
604+ self .assertEqual (l , [self .chef_id , self .richard_id , self .mary_id ,
605+ self .john_id ])
606+
607+ self .compareMessages (self ._get_mail (),
608+ 609+ 610+ Content-Type: text/plain; charset="utf-8"
611+ Subject: [issue1] Testing...
612+ 613+ 614+ Reply-To: Roundup issue tracker
615+ 616+ MIME-Version: 1.0
617+ Message-Id: <followup_dummy_id>
618+ In-Reply-To: <dummy_test_message_id>
619+ X-Roundup-Name: Roundup issue tracker
620+ X-Roundup-Loop: hello
621+ X-Roundup-Issue-Status: chatting
622+ Content-Transfer-Encoding: quoted-printable
623+
624+
625+ richard <[email protected] > added the comment: 626+
627+ This is a followup
628+
629+ ----------
630+ assignedto: -> mary
631+ nosy: +john, mary
632+ status: unread -> chatting
633+
634+ _______________________________________________________________________
635+ Roundup issue tracker <[email protected] > 636+ <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
637+ _______________________________________________________________________
638+ ''' )
639+ self .assertEqual (self .db .issue .get ('1' ,'title' ), 'Testing...' )
640+
641+ def testFollowupExplicitSubjectChange (self ):
642+ self .doNewIssue ()
643+
644+ self ._handle_mail ('''Content-Type: text/plain;
645+ charset="iso-8859-1"
646+ 647+ 648+ Message-Id: <followup_dummy_id>
649+ In-Reply-To: <dummy_test_message_id>
650+ Subject: [issue1] Wrzlbrmft... [assignedto=mary; nosy=+john; title=new title]
651+
652+ This is a followup
653+ ''' )
654+ l = self .db .issue .get ('1' , 'nosy' )
655+ l .sort ()
656+ self .assertEqual (l , [self .chef_id , self .richard_id , self .mary_id ,
657+ self .john_id ])
658+
659+ self .compareMessages (self ._get_mail (),
660+ 661+ 662+ Content-Type: text/plain; charset="utf-8"
663+ Subject: [issue1] new title
664+ 665+ 666+ Reply-To: Roundup issue tracker
667+ 668+ MIME-Version: 1.0
669+ Message-Id: <followup_dummy_id>
670+ In-Reply-To: <dummy_test_message_id>
671+ X-Roundup-Name: Roundup issue tracker
672+ X-Roundup-Loop: hello
673+ X-Roundup-Issue-Status: chatting
674+ Content-Transfer-Encoding: quoted-printable
675+
676+
677+ richard <[email protected] > added the comment: 678+
679+ This is a followup
680+
681+ ----------
682+ assignedto: -> mary
683+ nosy: +john, mary
684+ status: unread -> chatting
685+ title: Testing... -> new title
686+
582687_______________________________________________________________________
583688Roundup issue tracker <[email protected] > 584689<http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
0 commit comments