aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/vty_test_runner.py
diff options
context:
space:
mode:
authorCiaby <ciaby@autistici.org>2014-03-06 17:20:55 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-06 17:31:23 +0100
commitec6e4f8b3d1f304ee1c6ca73ee47290642ac380a (patch)
tree7d2047fa413ca5565bdddc1958d63dc2a26cec6f /openbsc/tests/vty_test_runner.py
parent1a1463725bb6f3bb8435963eab3685220a2fbcca (diff)
nitb: Add a test for "show network" in the python testsuite.
Make sure that bsc_gsmnet->bsc_data->rf_ctrl is initialized for NITB. In commit a9fae1ae66df57f76a0aedbd0b56228959d37d56 the conditions for the rf_ctrl was removed but it was still needed for the NITB. Fixes regression from: a9fae1ae66df57f76a0aedbd0b56228959d37d56 bsc: rf_ctrl will always be created, remove the NULL checks
Diffstat (limited to 'openbsc/tests/vty_test_runner.py')
-rw-r--r--openbsc/tests/vty_test_runner.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 7c8fe8c30..6bbc606cf 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -248,6 +248,10 @@ class TestVTYNITB(TestVTYGenericBSC):
res = self.vty.command("show paging-group 0 1234567")
self.assertEquals(res, "%Paging group for IMSI 1234567 on BTS #0 is 7")
+ def testShowNetwork(self):
+ res = self.vty.command("show network")
+ self.assert_(res.startswith('BSC is on Country Code') >= 0)
+
class TestVTYBSC(TestVTYGenericBSC):
def vty_command(self):
@@ -382,6 +386,10 @@ class TestVTYBSC(TestVTYGenericBSC):
res = self.vty.command("write terminal")
self.assertEquals(res.find(' timezone'), -1)
+ def testShowNetwork(self):
+ res = self.vty.command("show network")
+ self.assert_(res.startswith('BSC is on Country Code') >= 0)
+
class TestVTYNAT(TestVTYGenericBSC):
def vty_command(self):