simple test for monitor

This commit is contained in:
Ilan Steemers
2015-06-25 13:29:06 +02:00
parent 99a44dda45
commit 6314742343
2 changed files with 7 additions and 10 deletions
+6 -1
View File
@@ -8,4 +8,9 @@ def test_monitor():
stats = monitor(run_once=True)
c.stop()
assert len(stats) > 0
assert stats[0].cluster_id == c.pid
found_c = False
for stat in stats:
if stat.cluster_id == c.pid:
found_c = True
break
assert found_c is True