Commit 21154769 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b4bc9ce7
...@@ -168,6 +168,7 @@ def test_enb_conf(self): ...@@ -168,6 +168,7 @@ def test_enb_conf(self):
self.assertEqual(cell['uldl_config'], 6) self.assertEqual(cell['uldl_config'], 6)
self.assertEqual(cell['dl_earfcn'], enb_param_dict['dl_earfcn']) self.assertEqual(cell['dl_earfcn'], enb_param_dict['dl_earfcn'])
self.assertEqual(cell['n_rb_dl'], 50) self.assertEqual(cell['n_rb_dl'], 50)
# XXX gnb_id not in conf
self.assertEqual(conf['enb_id'], int(enb_param_dict['enb_id'], 16)) self.assertEqual(conf['enb_id'], int(enb_param_dict['enb_id'], 16))
self.assertEqual(cell['n_id_cell'], enb_param_dict['pci']) self.assertEqual(cell['n_id_cell'], enb_param_dict['pci'])
self.assertEqual(cell['tac'], int(enb_param_dict['tac'], 16)) self.assertEqual(cell['tac'], int(enb_param_dict['tac'], 16))
...@@ -201,10 +202,11 @@ def test_gnb_conf1(self): ...@@ -201,10 +202,11 @@ def test_gnb_conf1(self):
self.assertEqual(len(conf['nr_cell_list']), 1) self.assertEqual(len(conf['nr_cell_list']), 1)
nr_cell = conf['nr_cell_list'][0] nr_cell = conf['nr_cell_list'][0]
self.assertEqual(nr_cell['inactivity_timer'], gnb_param_dict1['inactivity_timer']) self.assertEqual(nr_cell['inactivity_timer'], gnb_param_dict1['inactivity_timer'])
self.assertEqual(conf['nr_cell_list'][0]['dl_nr_arfcn'], gnb_param_dict1['dl_nr_arfcn']) self.assertEqual(nr_cell['dl_nr_arfcn'], gnb_param_dict1['dl_nr_arfcn'])
self.assertEqual(conf['nr_cell_list'][0]['band'], gnb_param_dict1['nr_band']) self.assertEqual(nr_cell['band'], gnb_param_dict1['nr_band'])
self.assertEqual(conf['nr_cell_list'][0]['ssb_pos_bitmap'], gnb_param_dict1['ssb_pos_bitmap']) self.assertEqual(nr_cell['ssb_pos_bitmap'], gnb_param_dict1['ssb_pos_bitmap'])
self.assertEqual(conf['nr_cell_default']['n_id_cell'], gnb_param_dict1['pci']) self.assertEqual(nr_cell['n_id_cell'], gnb_param_dict1['pci'])
self.assertNotIn('enb_id', conf)
self.assertEqual(conf['gnb_id'], int(gnb_param_dict1['gnb_id'], 16)) self.assertEqual(conf['gnb_id'], int(gnb_param_dict1['gnb_id'], 16))
self.assertEqual(conf['gnb_id_bits'], gnb_param_dict1['gnb_id_bits']) self.assertEqual(conf['gnb_id_bits'], gnb_param_dict1['gnb_id_bits'])
for p in conf['nr_cell_default']['plmn_list']: for p in conf['nr_cell_default']['plmn_list']:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment