Changeset 05246b3 in rtems-central for rtemsqual/tests/test_items_item.py


Ignore:
Timestamp:
May 11, 2020, 7:00:49 AM (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
48082fc
Parents:
4dbae73
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/20 07:00:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/28/20 08:38:22)
Message:

items: Add and use Link.role

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsqual/tests/test_items_item.py

    r4dbae73 r05246b3  
    9494    child = Item(EmptyCache(), "c", {})
    9595    parent = Item(EmptyCache(), "p", {})
    96     parent.add_link_to_child(Link(child, {"a": "b"}))
     96    parent.add_link_to_child(Link(child, {"a": "b", "role": "c"}))
    9797    children = [item for item in parent.children()]
    9898    assert len(children) == 1
     
    102102    assert links[0].item == child
    103103    assert links[0]["a"] == "b"
     104    assert links[0].role == "c"
    104105
    105106
Note: See TracChangeset for help on using the changeset viewer.