def test_schema_extend_overrides():

    base = Schema({'a': int}, required=True)
    extended = base.extend({'b': str}, required=False, extra=ALLOW_EXTRA)

    assert base.required is True
    assert base.extra == PREVENT_EXTRA
    assert extended.required is False
    assert extended.extra == ALLOW_EXTRA
Build a single-item list of a YouTube category.
dataset/ETHPy150Open alecthomas/voluptuous/voluptuous/tests/tests.py/test_schema_extend_overrides--crossover with--dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/youtube/service.py/build_category