def test():
    '''Test the basic workings of `devour_keys`.'''
    my_dict = {
        1: 2,
        3: 4,
        5: 6,
    }
    assert set(dict_tools.devour_keys(my_dict)) == {1, 3, 5}
    assert not my_dict
def test():
    '''Test the basic workings of `devour_keys`.'''
    my_dict = {1: 2, 3: 4, 5: 6,}
    assert set(dict_tools.devour_keys(my_dict)) == {1, 3, 5}
    assert not my_dict
    
Esempio n. 3
0
def test():
    """Test the basic workings of `devour_keys`."""
    my_dict = {1: 2, 3: 4, 5: 6}
    assert set(dict_tools.devour_keys(my_dict)) == set((1, 3, 5))
    assert not my_dict