Skip to content

Commit

Permalink
Improve test_list_target_basic by having some data arrive in multiple…
Browse files Browse the repository at this point in the history
… chunks
  • Loading branch information
Israel Brewster committed Jul 9, 2024
1 parent 450cb2c commit 6ea422d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ def test_list_target_basic():
target.finish()
target.data_received(b"Dog")
target.finish()
target.data_received(b"Fish")
target.data_received(b"Big")
target.data_received(b" ")
target.data_received(b"Goldfish")
target.finish()

assert target.multipart_filename is None
assert target.value == [b"Cat", b"Dog", b"Fish"]
assert target.value == [b"Cat",b"Dog",b"Big Goldfish"]


def test_list_target_not_set():
Expand Down

0 comments on commit 6ea422d

Please sign in to comment.