Пример #1
0
def test_get_key_combination():

    flattened_schema = flatten_schema(schema)
    assert get_all_key_combinations(data, flattened_schema) ==\
        set([(),
            ('2', 0),
            ('2', 1),
            ('2', 1, '21', 0),
            ('2', 0, '21', 0),
            ('2', 1, '21', 1),
            ('2', 1, '21', 3),
            ]), get_all_key_combinations(data, flattened_schema)
Пример #2
0
def test_get_key_combination():

    flattened_schema = flatten_schema(schema)
    assert get_all_key_combinations(data, flattened_schema) == set([
        (),
        ("2", 0),
        ("2", 1),
        ("2", 1, "21", 0),
        ("2", 0, "21", 0),
        ("2", 1, "21", 1),
        ("2", 1, "21", 3),
    ]), get_all_key_combinations(data, flattened_schema)
Пример #3
0
def test_get_key_combination():

    flattened_schema = flatten_schema(schema)
    assert get_all_key_combinations(data, flattened_schema) ==\
        set([(),
            ('2', 0),
            ('2', 1),
            ('2', 1, '21', 0),
            ('2', 0, '21', 0),
            ('2', 1, '21', 1),
            ('2', 1, '21', 3),
            ]), get_all_key_combinations(data, flattened_schema)
Пример #4
0
    def test_get_key_combination(self):

        flattened_schema = flatten_schema(schema)
        assert get_all_key_combinations(data, flattened_schema) == set(
            [(), ("2", 0), ("2", 1), ("2", 1, "21", 0), ("2", 0, "21", 0), ("2", 1, "21", 1), ("2", 1, "21", 3)]
        ), get_all_key_combinations(data, flattened_schema)