# Path: sacred/config/custom_containers.py
# def fallback_dict(fallback, **kwargs):
#     fallback_copy = fallback.copy()
#     fallback_copy.update(kwargs)
#     return fallback_copy


import pytest
from sacred.config.custom_containers import fallback_dict
#!/usr/bin/env python
# coding=utf-8



@pytest.fixture
def fbdict():
    return fallback_dict({"fall1": 7, "fall3": True})


def test_is_dictionary(fbdict):
    assert isinstance(fbdict, dict)


def test_getitem(fbdict):
    assert "foo" not in fbdict
    fbdict["foo"] = 23
    assert "foo" in fbdict
    assert fbdict["foo"] == 23


def test_fallback(fbdict):

# Path: sacred/config/custom_containers.py
# def fallback_dict(fallback, **kwargs):
#     fallback_copy = fallback.copy()
#     fallback_copy.update(kwargs)
#     return fallback_copy


# Path: tests/test_config/test_fallback_dict.py
import pytest
from sacred.config.custom_containers import fallback_dict

#!/usr/bin/env python
# coding=utf-8



@pytest.fixture
def fbdict():
    return fallback_dict({"fall1": 7, "fall3": True})


def test_is_dictionary(fbdict):
    assert isinstance(fbdict, dict)


def test_getitem(fbdict):
    assert "foo" not in fbdict
    fbdict["foo"] = 23
    assert "foo" in fbdict
    assert fbdict["foo"] == 23


def test_fallback(fbdict):

    assert "fall1" in fbdict