From 12ca27367c58d70a8b48bb761cdd8b9a7687cd33 Mon Sep 17 00:00:00 2001 From: Nick Draper <nick.draper@stfc.ac.uk> Date: Wed, 7 Oct 2015 14:22:17 +0100 Subject: [PATCH] Anothtest hard coded to the LoadRaw versions peel an onion and you find another layer re #9020 --- .../test/python/mantid/api/AlgorithmFactoryTest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Framework/PythonInterface/test/python/mantid/api/AlgorithmFactoryTest.py b/Framework/PythonInterface/test/python/mantid/api/AlgorithmFactoryTest.py index fc7dae55821..42fb125698f 100644 --- a/Framework/PythonInterface/test/python/mantid/api/AlgorithmFactoryTest.py +++ b/Framework/PythonInterface/test/python/mantid/api/AlgorithmFactoryTest.py @@ -24,9 +24,10 @@ class AlgorithmFactoryTest(unittest.TestCase): all_algs = AlgorithmFactory.getRegisteredAlgorithms(True) self.assertTrue( len(all_algs) > 0 ) self.assertTrue( 'ConvertUnits' in all_algs ) - # 3 versions of LoadRaw - self.assertEquals( len(all_algs['LoadRaw']), 3 ) - self.assertEquals( all_algs['LoadRaw'], [1,2,3] ) + self.assertTrue( 'LoadRaw' in all_algs ) + # one versions of LoadRaw + self.assertEquals( len(all_algs['LoadRaw']), 1 ) + self.assertEquals( all_algs['LoadRaw'], [3] ) def test_algorithm_subscription_with_valid_object_succeeds(self): testhelpers.assertRaisesNothing(self, AlgorithmFactory.subscribe, IsAnAlgorithm) -- GitLab