def test_appcfg_to_dict(): appcfg = DCBModel.bitmask_to_dict(int("0x0d", 0)) assert appcfg == { 0: True, 2: True, 3: True, }
def test_make_appcfg(): assert "0e" == DCBModel.make_bitmask(1, 2, 3)