Changeset 833470c in rtems-central for rtemsqual/tests/test_items_item.py


Ignore:
Timestamp:
May 6, 2020, 10:36:53 AM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1767cc8
Parents:
a5f3cc1
git-author:
Sebastian Huber <sebastian.huber@…> (05/06/20 10:36:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/28/20 08:38:22)
Message:

items: Add Item.get()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsqual/tests/test_items_item.py

    ra5f3cc1 r833470c  
    8383
    8484
     85def test_get():
     86    data = {}
     87    data["x"] = "y"
     88    item = Item(EmptyCache(), "z", data)
     89    assert item.get("x", "z") == "y"
     90    assert item.get("z", "a") == "a"
     91
     92
    8593def test_children():
    8694    child = Item(EmptyCache(), "c", {})
Note: See TracChangeset for help on using the changeset viewer.