test_system: RSA keys vary in size, expand valid ranges in test

This commit is contained in:
Brian Warner 2007-11-08 03:01:13 -07:00
parent e7ad7f8791
commit 0ad7ff48fa

View File

@ -302,11 +302,11 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
m = re.search(r'^ container_size: (\d+)$', output, re.M) m = re.search(r'^ container_size: (\d+)$', output, re.M)
self.failUnless(m) self.failUnless(m)
container_size = int(m.group(1)) container_size = int(m.group(1))
self.failUnless(2046 <= container_size <= 2049, container_size) self.failUnless(2045 <= container_size <= 2049, container_size)
m = re.search(r'^ data_length: (\d+)$', output, re.M) m = re.search(r'^ data_length: (\d+)$', output, re.M)
self.failUnless(m) self.failUnless(m)
data_length = int(m.group(1)) data_length = int(m.group(1))
self.failUnless(2046 <= data_length <= 2049, data_length) self.failUnless(2045 <= data_length <= 2049, data_length)
self.failUnless(" secrets are for nodeid: %s\n" % peerid self.failUnless(" secrets are for nodeid: %s\n" % peerid
in output) in output)
self.failUnless(" SDMF contents:\n" in output) self.failUnless(" SDMF contents:\n" in output)