diff options
author | Alois Mahdal <amahdal@redhat.com> | 2014-06-25 18:14:26 +0200 |
---|---|---|
committer | Alois Mahdal <amahdal@redhat.com> | 2014-06-25 18:56:37 +0200 |
commit | 755e44de4cfa5d8b1a4533525270d5efb161b7d3 (patch) | |
tree | 09823efed31c213af64b08bf82433cdebab63f49 | |
parent | f434f50b3d65cdb1de7b87059773b652ae43f72f (diff) | |
download | openlmi-providers-755e44de4cfa5d8b1a4533525270d5efb161b7d3.tar.gz openlmi-providers-755e44de4cfa5d8b1a4533525270d5efb161b7d3.tar.xz openlmi-providers-755e44de4cfa5d8b1a4533525270d5efb161b7d3.zip |
Update error messages
* Fix copypasting error
* use natural "source instances" instead of pluralizing dict key
-rw-r--r-- | src/python/lmi/test/ind.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/python/lmi/test/ind.py b/src/python/lmi/test/ind.py index d7f67b6..784186c 100644 --- a/src/python/lmi/test/ind.py +++ b/src/python/lmi/test/ind.py @@ -92,11 +92,11 @@ class IndicationStreamTestCase(lmi.test.lmibase.LmiTestCase): es = case['expected_si_stream'] oracle = lmi.test.util.PackedSequence.normalize(es) result = probe.describe_source_instance_stream() - msg = ("Expected SourceInstance not delivered:\n" - "..subscriptions: %r\n" - "..triggered actions: %r\n" - "..expected SourceInstances: %r\n" - "..got: %r\n" + msg = ("Expected source instances not delivered:\n" + "..subscriptions: %r\n" + "..triggered actions: %r\n" + "..expected source instances: %r\n" + "..got: %r\n" % (case['subscriptions'], probe.describe_actions(), oracle, result)) assert result == oracle, msg @@ -112,11 +112,11 @@ class IndicationStreamTestCase(lmi.test.lmibase.LmiTestCase): es = case['expected_ind_stream'] oracle = lmi.test.util.PackedSequence.normalize(es) result = probe.describe_indication_stream() - msg = ("Expected SourceInstance not delivered:\n" - "..subscriptions: %r\n" - "..triggered actions: %r\n" - "..expected indications: %r\n" - "..got: %r\n" + msg = ("Expected indications not delivered:\n" + "..subscriptions: %r\n" + "..triggered actions: %r\n" + "..expected indications: %r\n" + "..got: %r\n" % (case['subscriptions'], probe.describe_actions(), oracle, result)) assert result == oracle, msg |