From ca4c52ec72d87770f752404f1df355d5f28dc1b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 11 Apr 2017 08:24:21 +0000
Subject: [PATCH] Prove that it is possible to stop draft test line

---
 .../portal_components/test.erp5.testTaskDistribution.py         | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py b/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
index 5d95225c58..8d847b3797 100644
--- a/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
+++ b/bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
@@ -452,6 +452,8 @@ class TestTaskDistribution(ERP5TypeTestCase):
         history_line['time'] = now - 1
     self._callRestartStuckTestResultAlarm()
     checkTestResultLine([('testBar', 'started'), ('testFoo', 'draft')])
+    self.tool.stopUnitTest(line_url, {})
+    checkTestResultLine([('testBar', 'started'), ('testFoo', 'stopped')])
 
   def test_07_reportTaskFailure(self):
     test_result_path, revision = self._createTestResult(node_title="Node0")
-- 
2.30.9