1. Wojciech Malinowski
  2. Webware

Source

Webware / MiddleKit / Tests / MKBackRef.mkmodel / TestSamples.py

1
2
3
4
5
6
7
8
9
def test(store):
    from Node import Node

    nodes = store.fetchObjectsOfClass(Node)
    for n in nodes:
        children = n.children()
        if children:
            children.sort(key=lambda c: c.serialNum)
            assert n.value() == ''.join(map(lambda c: c.value(), children))