def test_recursive_dict_update_correct_inputs(): d = ConfigParser.recursive_dict_update( original=DICT_1, update=DICT_2, ) assert d[KEY_1][KEY_2] == DICT_2[KEY_1][KEY_2] assert KEY_3 in d[KEY_1] assert KEY_4 in d
def test_recursive_dict_update_arg2_str(): with pytest.raises(TypeError): ConfigParser.recursive_dict_update( original=DICT_1, update=KEY_1, )
def test_recursive_dict_update_arg1_int(): with pytest.raises(TypeError): ConfigParser.recursive_dict_update( original=INT, update=DICT_1, )