From 552111629b7d9d76ee679fdcc5bb6d7d7c8806d8 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Tue, 29 Jan 2013 20:10:09 +0000 Subject: [PATCH] fix exception texts --- tests/functional/openlp_core_lib/test_registry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional/openlp_core_lib/test_registry.py b/tests/functional/openlp_core_lib/test_registry.py index 5faab219f..231cb80fe 100644 --- a/tests/functional/openlp_core_lib/test_registry.py +++ b/tests/functional/openlp_core_lib/test_registry.py @@ -30,14 +30,14 @@ class TestRegistry(TestCase): with self.assertRaises(KeyError) as context: Registry().register(u'test1', mock_1) self.assertEqual(context.exception[0], u'Duplicate service exception test1', - u'The correct exception has been thrown') + u'KeyError exception has been thrown as expected') # WHEN I try to get back a non existent component # THEN I will get an exception with self.assertRaises(KeyError) as context: temp = Registry().get(u'test2') self.assertEqual(context.exception[0], u'Service test2 not found in list', - u'The correct exception has been thrown') + u'KeyError exception has been thrown as expected') # WHEN I try to replace a component I should be allowed (testing only) Registry().remove(u'test1') @@ -45,4 +45,4 @@ class TestRegistry(TestCase): with self.assertRaises(KeyError) as context: temp = Registry().get(u'test1') self.assertEqual(context.exception[0], u'Service test1 not found in list', - u'The correct exception has been thrown as I deleted it!') + u'KeyError exception has been thrown as expected as I deleted it earlier!')