Skip to content

Commit

Permalink
Add test for levelType
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrimaz committed Jan 2, 2024
1 parent 035754f commit 1e34f27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/serialization/shell_serialization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,12 @@ def test_specific_asset_id_maximal_to_rdf():
re_created = SpecificAssetId.from_rdf(graph, created_node)
assert re_created == payload

def test_aas_with_level_type_maximal_to_rdf():
payload_json = json.loads(get_testdata_json("LevelType", "maximal"))["assetAdministrationShells"][0]
payload = AssetAdministrationShell(**payload_json)
graph, created_node = payload.to_rdf()
re_created = AssetAdministrationShell.from_rdf(graph, created_node)
assert re_created == payload

def test_specific_asset_id_minimal_to_rdf():
payload_json = json.loads(get_testdata_json("SpecificAssetId", "minimal"))["assetAdministrationShells"][0][
Expand Down

0 comments on commit 1e34f27

Please sign in to comment.