[pitivi] test_integration.py: more meaningful error message for Configuration.matches()
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] test_integration.py: more meaningful error message for Configuration.matches()
- Date: Fri, 20 Nov 2009 07:48:28 +0000 (UTC)
commit 12898c4c1f508d364d60237098b73f1787ef4c4e
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 6 11:32:21 2009 -0800
test_integration.py: more meaningful error message for Configuration.matches()
tests/test_integration.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 5c2cc04..b88e2a0 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -144,8 +144,10 @@ class Configuration(object):
raise Exception("%s has wrong factory type!" % name)
if timelineObject:
for prop, value in props.iteritems():
- if not getattr(timelineObject, prop) == value:
- raise Exception("'%s'.%s != %r" % (uri, prop, value))
+ actual = getattr(timelineObject, prop)
+ if not actual == value:
+ raise Exception("%s.%s: %r != %r" % (name, prop,
+ actual, value))
names = set((source[0] for source in self.getGoodSources()))
timelineObjects = set(instance_runner.timelineObjects.iterkeys())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]