From c9bed73e4ee27eb1293b16f526c8d5fc05205141 Mon Sep 17 00:00:00 2001
From: Arturs Bekasovs <arturs.bekasovs@stfc.ac.uk>
Date: Mon, 2 Sep 2013 11:54:28 +0100
Subject: [PATCH] Updated test to expose the problem.

Obviously failing for now.

Refs #7852
---
 Code/Mantid/Framework/DataHandling/test/LoadTest.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Code/Mantid/Framework/DataHandling/test/LoadTest.h b/Code/Mantid/Framework/DataHandling/test/LoadTest.h
index ca90e6724e0..a10c93c6a7d 100644
--- a/Code/Mantid/Framework/DataHandling/test/LoadTest.h
+++ b/Code/Mantid/Framework/DataHandling/test/LoadTest.h
@@ -391,6 +391,12 @@ public:
     TS_ASSERT(ws5);
     MatrixWorkspace_sptr ws6 = AnalysisDataService::Instance().retrieveWS<MatrixWorkspace>("MUSR00015191_2");
     TS_ASSERT(ws6);
+
+    // Check that originally loaded groups are not left in the ADS
+    TS_ASSERT(!AnalysisDataService::Instance().doesExist("MUSR00015189"));
+    TS_ASSERT(!AnalysisDataService::Instance().doesExist("MUSR00015190"));
+    TS_ASSERT(!AnalysisDataService::Instance().doesExist("MUSR00015191"));
+
     removeGroupFromADS(output);
   }
 
-- 
GitLab