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.
This commit is contained in:
Holger Hans Peter Freyther 2014-12-09 19:13:00 +01:00
parent a1e0373224
commit 416c08f9ed
1 changed files with 2 additions and 2 deletions

View File

@ -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)