Adds basic test for convert command.

This commit is contained in:
Romain Dorgueil
2017-11-04 14:55:08 +01:00
parent 25e919ab96
commit 0b969d31e0
18 changed files with 420 additions and 353 deletions

View File

@ -185,6 +185,7 @@ def test_node_tuple_dict():
assert output[0] == ('foo', 'bar', {'id': 1})
assert output[1] == ('foo', 'baz', {'id': 2})
def test_node_lifecycle_natural():
func = MagicMock()
@ -203,6 +204,7 @@ def test_node_lifecycle_natural():
ctx.stop()
assert all((ctx.started, ctx.stopped)) and not any((ctx.alive, ctx.killed))
def test_node_lifecycle_with_kill():
func = MagicMock()
@ -223,7 +225,3 @@ def test_node_lifecycle_with_kill():
ctx.stop()
assert all((ctx.started, ctx.killed, ctx.stopped)) and not ctx.alive

View File

@ -10,6 +10,7 @@ def test_names():
event_name = getattr(events, name.upper())
assert event_name == '.'.join(('execution', name))
def test_event_object():
# Same logic as above.
c = Mock()