chage output
@@ -227,34 +227,25 @@ def test_removal_window_title_codes():
def test_convert_to_int():
from moler.helpers import convert_to_int, compare_objects
- sample_input = {'ResourcesUsageInfoResponses': [{'ENBC ': {'contextInfoList': [],
- 'numContextInfo': '0',
- 'numEnbUeS1APIds': '0',
- 'numEnbUeX2APIds': '0',
- 'numTeIds': '0'}},
- {'MAC 0': {'contextInfoList': [],
- 'numCells': '0',
- 'numContextInfos': '0',
+
+ sample_input = {'KEY': [{'KEY1 ': {'contextInfoList': ['sample', '2', '4'],
+ 'someIds': '0'}},
+ {'KEY2': {'contextInfoList': [],
+ 'num': '20',
'poolId': '1',
- 'userResourcesPerCell': [],
- 'userResourcesPerPool': {
- 'contextType': 'EContextType_L2Pcell',
- 'numContexts': '0',
- 'numDRbs': '0'}}}]}
-
- expected_output = {'ResourcesUsageInfoResponses': [{'ENBC ': {'contextInfoList': [],
- 'numContextInfo': 0,
- 'numEnbUeS1APIds': 0,
- 'numEnbUeX2APIds': 0,
- 'numTeIds': 0}},
- {'MAC 0': {'contextInfoList': [],
- 'numCells': 0,
- 'numContextInfos': 0,
+ 'user': {
+ 'contextType': 'sample',
+ 'numContexts': '3',
+ 'num': '4'}}}]}
+
+ expected_output = {'KEY': [{'KEY1 ': {'contextInfoList': ['sample', 2, 4],
+ 'someIds': 0}},
+ {'KEY2': {'contextInfoList': [],
+ 'num': 20,
'poolId': 1,
- 'userResourcesPerCell': [],
- 'userResourcesPerPool': {
- 'contextType': 'EContextType_L2Pcell',
- 'numContexts': 0,
- 'numDRbs': 0}}}]}
+ 'user': {
+ 'contextType': 'sample',
+ 'numContexts': 3,
+ 'num': 4}}}]}
assert not compare_objects(convert_to_int(sample_input), expected_output)
