Meshroom/tests/test_task.py
Yann Lanthony 7488de782c reorder modules and packages
* meshroom package at root
* use pep8 recommandation for import orders
2017-09-19 11:38:28 +02:00

24 lines
539 B
Python

from nose.tools import *
from meshroom import processGraph as pg
def test_depth():
graph = pg.Graph('Tests tasks depth')
tA = graph.addNewNode('Ls', input='/tmp')
tB = graph.addNewNode('AppendText', inputText='echo B')
tC = graph.addNewNode('AppendText', inputText='echo C')
graph.addEdges(
(tA.output, tB.input),
(tB.output, tC.input)
)
assert_equal(tA.getDepth(), 1)
assert_equal(tB.getDepth(), 2)
assert_equal(tC.getDepth(), 3)
if __name__ == '__main__':
test_depth()