~ubuntu-branches/ubuntu/trusty/python3.3/trusty

« back to all changes in this revision

Viewing changes to Lib/test/test_nntplib.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-19 08:46:55 UTC
  • mfrom: (22.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20131119084655-pueqfadzs5v1xf53
Tags: 3.3.3-1
* Python 3.3.3 release.
* Update to 20131119 from the 3.3 branch.
* Regenerate the patches.
* Update the symbols files.
* Fix test support when the running kernel doesn't handle port reuse.
* libpython3.3-minimal replaces libpython3.3-stdlib (<< 3.2.3-7).
  Closes: #725240.

Show diffs side-by-side

added added

removed removed

Lines of Context:
584
584
                <a4929a40-6328-491a-aaaf-cb79ed7309a2@q2g2000vbk.googlegroups.com>
585
585
                <f30c0419-f549-4218-848f-d7d0131da931@y3g2000vbm.googlegroups.com>
586
586
                .""")
 
587
        elif (group == 'comp.lang.python' and
 
588
              date_str in ('20100101', '100101') and
 
589
              time_str == '090000'):
 
590
            self.push_lit('too long line' * 3000 +
 
591
                          '\n.')
587
592
        else:
588
593
            self.push_lit("""\
589
594
                230 An empty list of newsarticles follows
1179
1184
        self.assertEqual(cm.exception.response,
1180
1185
                         "435 Article not wanted")
1181
1186
 
 
1187
    def test_too_long_lines(self):
 
1188
        dt = datetime.datetime(2010, 1, 1, 9, 0, 0)
 
1189
        self.assertRaises(nntplib.NNTPDataError,
 
1190
                          self.server.newnews, "comp.lang.python", dt)
 
1191
 
1182
1192
 
1183
1193
class NNTPv1Tests(NNTPv1v2TestsMixin, MockedNNTPTestsMixin, unittest.TestCase):
1184
1194
    """Tests an NNTP v1 server (no capabilities)."""