def test_nametupled_ignore_array(mapping=mapping_array):
    mapping = namedtupled.ignore(mapping)
    t = namedtupled.map(mapping)
    assert t == mapping
Exemple #2
0
def test_ignore():
    data = {'binks': namedtupled.ignore({'says': 'meow'})}
    cat = namedtupled.map(data)
    assert cat.binks == {'says': 'meow'}
def test_namedtupled_ignore_object(mapping=mapping):
    mapping = namedtupled.ignore(mapping)
    t = namedtupled.map(mapping)
    assert t == mapping