def test_dict_make_it_nested(): e = B.dict_make_it_nested() assert 'deep' in e['two']
def test_dict_key_check(): assert B.dict_key_check('dlab', {'dlab' : 1, 'bids' : 1}) is True assert B.dict_key_check('Ca', {'fl' : 1, 'ca' : 1}) is True assert B.dict_key_check('R', {'python' : 1, 'scala' : 0}) is False
def test_dict_unique_values(): assert B.dict_unique_values() == 4
def test_unique_values(): assert B.unique_values({}) == 0 assert B.unique_values({'one': 1}) == 1 assert B.unique_values({'one': 1, 'two': 1}) == 1
def test_key_check(): assert B.dict_key_check('dlab', {'dlab': 1, 'bids': 1}) assert B.dict_key_check('Ca', {'fl': 1, 'ca': 1}) assert not B.dict_key_check('R', {'python': 1, 'scala': 0})
def test_unique_values(): assert B.unique_values({}) == 0 assert B.unique_values({'one' : 1}) == 1 assert B.unique_values({'one' : 1, 'two' : 1}) == 1