diff options
| author | Bob Halley <halley@dnspython.org> | 2005-09-02 05:23:46 +0000 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2005-09-02 05:23:46 +0000 |
| commit | f7b87372077894d80cdc82f20fee5daba9881489 (patch) | |
| tree | 6be0e0e138fc3a446541ee967b4c311c11ce2c12 /tests | |
| parent | 50696af2d785bb440b1f908b3d178dd91a5462e7 (diff) | |
| download | dnspython-f7b87372077894d80cdc82f20fee5daba9881489.tar.gz | |
fix the TooBig test, since the message code now imposes a minimum
maximum of 512
Original author: Bob Halley <halley@dnspython.org>
Date: 2004-10-26 00:30:13
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/message.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/message.py b/tests/message.py index fe73832..f790ff8 100644 --- a/tests/message.py +++ b/tests/message.py @@ -130,7 +130,13 @@ class MessageTestCase(unittest.TestCase): def test_TooBig(self): def bad(): q = dns.message.from_text(query_text) - w = q.to_wire(max_size=15) + for i in xrange(0, 25): + rrset = dns.rrset.from_text('foo%d.' % i, 3600, + dns.rdataclass.IN, + dns.rdatatype.A, + '10.0.0.%d' % i) + q.additional.append(rrset) + w = q.to_wire(max_size=512) self.failUnlessRaises(dns.exception.TooBig, bad) def test_answer1(self): |
