From 755e44de4cfa5d8b1a4533525270d5efb161b7d3 Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Wed, 25 Jun 2014 18:14:26 +0200 Subject: Update error messages * Fix copypasting error * use natural "source instances" instead of pluralizing dict key --- src/python/lmi/test/ind.py | 20 ++++++++++---------- 1 file 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 -- cgit