Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Update test_different_IDs() and add test_different_availabilities()
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Stoops committed Dec 1, 2024
1 parent d724a62 commit 993f614
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
PositionList,
SolidColorMaterial,
)
from czml3.types import Cartesian3Value, StringValue
from czml3.types import Cartesian3Value, Sequence, StringValue


def test_preamble_has_proper_id_and_expected_version():
Expand Down Expand Up @@ -617,3 +617,11 @@ def test_different_IDs():
p1 = Packet()
p2 = Packet()
assert p1.id != p2.id
assert str(p1.id) != str(p2.id)


def test_different_availabilities():
p1 = Packet(availability=Sequence(values=[1, 2, 3]))
p2 = Packet(availability=Sequence(values=[2, 3, 4]))
assert p1 != p2
assert str(p1) != str(p2)

0 comments on commit 993f614

Please sign in to comment.