path: root/openbsc
diff options
authorHolger Hans Peter Freyther <>2014-12-09 19:13:00 +0100
committerHolger Hans Peter Freyther <>2014-12-09 19:13:00 +0100
commit416c08f9ed340aae21a1d947bcf3a8ab41bb89ce (patch)
tree607af6e41b019bc9bd5d9db298599889b9c6b1d5 /openbsc
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')
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/tests/ b/openbsc/tests/
index 3238a1b57..df2e66c85 100644
--- a/openbsc/tests/
+++ b/openbsc/tests/
@@ -521,8 +521,8 @@ class TestCtrlNAT(TestCtrlBase):
self.assertEquals(r['var'], 'net')
self.assertEquals(r['value'], None)
- r = self.do_set('', '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)