def test_make_full_schema(): full_schema = make_full_schema(data, schema) assert set(full_schema.keys()) - set(data.keys()) == set([ ("2", 1, "__before"), ("2", 0, "__after"), ("2", 0, "22"), ("1", ), ("2", 1, "__after"), ("2", 0, "__before"), ("__after", ), ("__extra", ), ("__junk", ), ]) assert set(data.keys()) - set(full_schema.keys()) == set([("4", ), ("4", 1, "30")])
def test_make_full_schema(): full_schema = make_full_schema(data, schema) print(set(full_schema.keys()) - set(data.keys())) assert set(full_schema.keys()) - set(data.keys()) == set([('2', 1, '__before'), ('2', 0, '__after'), ('2', 0, '22'), ('1',), ('2', 1, '__after'), ('2', 0, '__before'), ('__after',), ('__extra',), ('__junk',), ]) print(set(data.keys()) - set(full_schema.keys())) assert set(data.keys()) - set(full_schema.keys()) == set([('4',), ('4', 1, '30')])
def test_make_full_schema(self): full_schema = make_full_schema(data, schema) print set(full_schema.keys()) - set(data.keys()) assert set(full_schema.keys()) - set(data.keys()) == set( [ ("2", 1, "__before"), ("2", 0, "__after"), ("2", 0, "22"), ("1",), ("2", 1, "__after"), ("2", 0, "__before"), ("__after",), ("__extra",), ("__junk",), ] ) print set(data.keys()) - set(full_schema.keys()) assert set(data.keys()) - set(full_schema.keys()) == set([("2", 2, "21", 0, "210"), ("4",), ("4", 1, "30")])