aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/ctrl_test_runner.py
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-09 19:13:00 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-09 19:13:00 +0100
commit416c08f9ed340aae21a1d947bcf3a8ab41bb89ce (patch)
tree607af6e41b019bc9bd5d9db298599889b9c6b1d5 /openbsc/tests/ctrl_test_runner.py
parenta1e0373224e02784f85eb47306a689fce45fb9e3 (diff)
nat: Fix copy and paste in the test code
The test didn't test that the access-list has been properly removed. Fix the test to only remove the list once and verify that it is gone.
Diffstat (limited to 'openbsc/tests/ctrl_test_runner.py')
-rw-r--r--openbsc/tests/ctrl_test_runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/tests/ctrl_test_runner.py b/openbsc/tests/ctrl_test_runner.py
index 3238a1b57..df2e66c85 100644
--- a/openbsc/tests/ctrl_test_runner.py
+++ b/openbsc/tests/ctrl_test_runner.py
@@ -521,8 +521,8 @@ class TestCtrlNAT(TestCtrlBase):
self.assertEquals(r['var'], 'net')
self.assertEquals(r['value'], None)
- r = self.do_set('net.0.bsc_cfg.0.no-access-list-name', '1')
- self.assertEquals(r['mtype'], 'SET_REPLY')
+ r = self.do_get('net.0.bsc_cfg.0.access-list-name')
+ self.assertEquals(r['mtype'], 'GET_REPLY')
self.assertEquals(r['var'], 'net')
self.assertEquals(r['value'], None)