Skip to content

Commit

Permalink
proxy put request
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Aug 30, 2023
1 parent aec58b4 commit 21ca3af
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/cfdp/tlvslvs/test_proxy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from unittest import TestCase

from spacepackets.cfdp import CfdpLv
from spacepackets.cfdp.tlv import ProxyPutRequest, TlvType, ProxyMessageType
from spacepackets.cfdp.tlv import (
ProxyPutRequest,
TlvType,
ProxyMessageType,
ProxyPutRequestParams,
)
from spacepackets.util import ByteFieldU8


Expand All @@ -12,9 +17,10 @@ def setUp(self) -> None:
self.src_name = CfdpLv.from_str(self.src_string)
self.dest_string = "hello2.txt"
self.dest_name = CfdpLv.from_str(self.dest_string)
self.proxy_put_req = ProxyPutRequest(
proxy_put_req_params = ProxyPutRequestParams(
self.dest_entity_id, self.src_name, self.dest_name
)
self.proxy_put_req = ProxyPutRequest(proxy_put_req_params)
self.expected_raw_len = (
2 # TLV header
+ len("cfdp".encode())
Expand Down

0 comments on commit 21ca3af

Please sign in to comment.