X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Ftest_rmr.py;fp=tests%2Ftest_rmr.py;h=afd998038e193738ac7a67d1ab6bbb07819fe7d3;hb=db26ba217530985dbdcf739640c16c6cecd54a1d;hp=a503968dff64af498924df82ed09be8180069f14;hpb=4b9552c36d910264474a25cd7c1520a2a816f4d4;p=ric-plt%2Fxapp-frame-py.git diff --git a/tests/test_rmr.py b/tests/test_rmr.py index a503968..afd9980 100644 --- a/tests/test_rmr.py +++ b/tests/test_rmr.py @@ -68,38 +68,6 @@ def _assert_new_sbuf(sbuf): assert summary["errno"] == 0 -def test_get_constants(expected_constants): - """ - test getting constants. We don't care what values are returned as those - should be meaningful only to RMR. We do care that all of the constants - which are defined in expected_contents are returned. Further, we don't - consider it to be an error if the returned list has more constants than - what are in our list. - - To avoid frustration, this should list all missing keys, not fail on the - first missing key. - """ - errors = 0 - econst = expected_constants - rconst = rmr._get_constants() - for key in econst: # test all expected constants - if key not in rconst: # expected value not listed by rmr - errors += 1 - print("did not find required constant in list from RMR: %s" % key) - - assert errors == 0 - - -def test_get_mapping_dict(expected_states): - """ - test getting mapping string - """ - assert rmr._get_mapping_dict() == expected_states - assert rmr._state_to_status(0) == "RMR_OK" - assert rmr._state_to_status(12) == "RMR_ERR_TIMEOUT" - assert rmr._state_to_status(666) == "UNKNOWN STATE" - - def test_meid(): """ test meid stringification