summaryrefslogtreecommitdiffstats
path: root/rtemsspec/tests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-11-21 11:13:15 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-11-21 11:15:24 +0100
commitf32b510da81a7dd0036a2b30a89393bae9b654b1 (patch)
tree7fafd72e6a8e53483676233a246520a514bd398e /rtemsspec/tests
parentitems: Add Link order (diff)
downloadrtems-central-f32b510da81a7dd0036a2b30a89393bae9b654b1.tar.bz2
content: Make Content iterable
Diffstat (limited to 'rtemsspec/tests')
-rw-r--r--rtemsspec/tests/test_content.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/rtemsspec/tests/test_content.py b/rtemsspec/tests/test_content.py
index 6bc344fa..ad26972e 100644
--- a/rtemsspec/tests/test_content.py
+++ b/rtemsspec/tests/test_content.py
@@ -169,6 +169,13 @@ b c
"""
+def test_iter():
+ content = Content("BSD-2-Clause", True)
+ assert "".join(content) == ""
+ content.add("a")
+ assert "".join(content) == "a"
+
+
def test_paste():
content = Content("BSD-2-Clause", True)
content.paste("")