aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/ctrl_test_runner.py
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-01-11 18:37:55 +0100
committerMax <msuraev@sysmocom.de>2017-01-25 11:52:45 +0000
commitf6e51709fc3a79274646135fec1a603d4316acf6 (patch)
tree9003843cb78270a629b56dccc7820beeee302ba0 /openbsc/tests/ctrl_test_runner.py
parent76f048a1fdf8247ba28a373d989215a5493895ea (diff)
CTRL: remove boilerplate
Use CTRL_CMD_DEFINE_RO(), CTRL_CMD_DEFINE_WO() and CTRL_CMD_DEFINE_WO_NOVRF() where appropriate to get rid of boilerplate code. Change-Id: I5bcea0b4f4b8f535bef2b423f2013b8b4a218b5b
Diffstat (limited to 'openbsc/tests/ctrl_test_runner.py')
-rw-r--r--openbsc/tests/ctrl_test_runner.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/tests/ctrl_test_runner.py b/openbsc/tests/ctrl_test_runner.py
index 4fd831fd3..9050c09a3 100644
--- a/openbsc/tests/ctrl_test_runner.py
+++ b/openbsc/tests/ctrl_test_runner.py
@@ -219,7 +219,7 @@ class TestCtrlBSC(TestCtrlBase):
def testBtsGenerateSystemInformation(self):
r = self.do_get('bts.0.send-new-system-informations')
self.assertEquals(r['mtype'], 'ERROR')
- self.assertEquals(r['error'], 'Write only attribute')
+ self.assertEquals(r['error'], 'Write Only attribute')
# No RSL links so it will fail
r = self.do_set('bts.0.send-new-system-informations', '1')
@@ -229,7 +229,7 @@ class TestCtrlBSC(TestCtrlBase):
def testBtsChannelLoad(self):
r = self.do_set('bts.0.channel-load', '1')
self.assertEquals(r['mtype'], 'ERROR')
- self.assertEquals(r['error'], 'Read only attribute')
+ self.assertEquals(r['error'], 'Read Only attribute')
# No RSL link so everything is 0
r = self.do_get('bts.0.channel-load')
@@ -243,7 +243,7 @@ class TestCtrlBSC(TestCtrlBase):
"""Check OML state. It will not be connected"""
r = self.do_set('bts.0.oml-connection-state', '1')
self.assertEquals(r['mtype'], 'ERROR')
- self.assertEquals(r['error'], 'Read only attribute')
+ self.assertEquals(r['error'], 'Read Only attribute')
# No RSL link so everything is 0
r = self.do_get('bts.0.oml-connection-state')
@@ -531,7 +531,7 @@ class TestCtrlNITB(TestCtrlBase):
def testApplyConfiguration(self):
r = self.do_get('bts.0.apply-configuration')
self.assertEquals(r['mtype'], 'ERROR')
- self.assertEquals(r['error'], 'Write only attribute')
+ self.assertEquals(r['error'], 'Write Only attribute')
r = self.do_set('bts.0.apply-configuration', '1')
self.assertEquals(r['mtype'], 'SET_REPLY')