Beispiel #1
0
def test_empty_preamble_has_id_and_version():
    expected_result = """{
    "id": "document",
    "version": "1.0"
}"""

    packet = Preamble()

    assert str(packet) == expected_result
Beispiel #2
0
 def _init_czml_(self):
     """
     Only called at the initialization of the extractor
     Builds packets.
     """
     pckt = Preamble(
         name="document_packet",
         clock=IntervalValue(
             start=self.start_epoch.value,
             end=self.end_epoch.value,
             value=Clock(currentTime=self.start_epoch.value, multiplier=60),
         ),
     )
     self.packets.append(pckt)