Skip to content
Snippets Groups Projects
Commit d68ed835 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

sty

parent bf279343
No related branches found
No related tags found
2 merge requests!91Release 0.3,!67MAINT: introduce an identifiable class
Pipeline #30454 passed
......@@ -44,8 +44,10 @@ def test_create_hash():
b = _create_hashable_string(
Identifiable(name="A", record_type="B", properties={'b': 5, 'a': 4}))
assert a == b
assert (_create_hashable_string(Identifiable(name="A", record_type="B",
properties={'a': db.Record(id=12)})) == "P<B>N<A>Path<None>a:12")
assert (
_create_hashable_string(
Identifiable(name="A", record_type="B", properties={'a': db.Record(id=12)})
) == "P<B>N<A>Path<None>a:12")
a = _create_hashable_string(
Identifiable(name="A", record_type="B", properties={'a': [db.Record(id=12)]}))
assert (a == "P<B>N<A>Path<None>a:[12]")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment