aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-27 22:23:25 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-27 22:23:25 +0200
commitc0438e3587cc699d9aa3e280432582d566e0a5c3 (patch)
treee7c92e81524c933ba9684294097ec8a2ffc3522c /openbsc
parentc63f6f1f324baaff41f8ea543f32479a09a71cd0 (diff)
tests: TestCase.assertGreater is not available on Python 2.5
The jenkins build node has Python 2.5.X installed and the assertGreater method is not available. Use assert_ until we can use newer versions of Python.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/tests/vty_test_runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index fb01b8976..778cde04c 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -78,14 +78,14 @@ class TestVTYNITB(TestVTYBase):
# Enable periodic lu..
self.vty.verify("periodic location update 60", [''])
res = self.vty.command("write terminal")
- self.assertGreater(res.find('periodic location update 60'), 0)
+ self.assert_(res.find('periodic location update 60') > 0)
self.assertEquals(res.find('no periodic location update'), -1)
# Now disable it..
self.vty.verify("no periodic location update", [''])
res = self.vty.command("write terminal")
self.assertEquals(res.find('periodic location update 60'), -1)
- self.assertGreater(res.find('no periodic location update'), 0)
+ self.assert_(res.find('no periodic location update') > 0)
class TestVTYNAT(TestVTYBase):