def test_iterate_candidates():
    schema = {
        "toaster": str,
        Extra: object,
    }
    # toaster should be first.
    from voluptuous.schema_builder import _iterate_mapping_candidates
    assert_equal(_iterate_mapping_candidates(schema)[0][0], 'toaster')
Verify that the order for iterating over mapping candidates is right.
dataset/ETHPy150Open alecthomas/voluptuous/voluptuous/tests/tests.py/test_iterate_candidates