Ejemplo n.º 1
0
 def testSubject(self):
     """ test that reply counting works as expected """
     self.assertEqual(format_subject(u"foo bar"), u"Re: foo bar")
     self.assertEqual(format_subject(u"Re: foo bar"), u"Re[2]: foo bar")
     self.assertEqual(format_subject(u"Re[2]: foo bar"), u"Re[3]: foo bar")
     self.assertEqual(format_subject(u"Re[10]: foo bar"),
                      u"Re[11]: foo bar")
Ejemplo n.º 2
0
 def testSubject(self):
     """ test that reply counting works as expected """
     self.assertEqual(format_subject(u"foo bar"), u"Re: foo bar")
     self.assertEqual(format_subject(u"Re: foo bar"), u"Re[2]: foo bar")
     self.assertEqual(format_subject(u"Re[2]: foo bar"), u"Re[3]: foo bar")
     self.assertEqual(format_subject(u"Re[10]: foo bar"),
                      u"Re[11]: foo bar")