[conduit: 28/138] Better docs for generated sync tests
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit: 28/138] Better docs for generated sync tests
- Date: Thu, 21 May 2009 03:29:17 -0400 (EDT)
commit 1465a4e0af8a79a3d43787b3e79338eb6f4fb3e9
Author: John Carr <john carr unrouted co uk>
Date: Mon Apr 27 11:59:56 2009 -0700
Better docs for generated sync tests
---
test/soup/test_synchronization.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/test/soup/test_synchronization.py b/test/soup/test_synchronization.py
index 7f99467..bc2bb5b 100644
--- a/test/soup/test_synchronization.py
+++ b/test/soup/test_synchronization.py
@@ -5,7 +5,12 @@ def make_testcase(src, snk):
source = src
sink = snk
+ @classmethod
+ def name(self):
+ return "TestSynchronization%s%s" % (self.source.name(), self.sink.name())
+
def testDoNothing(self):
+ """ Test doing nothing """
pass
return TestSynchronization
@@ -18,7 +23,8 @@ for i in range(len(mods)):
for j in range(i+1, len(mods)):
source = mods[i]
sink = mods[j]
- setattr(self, "TestSynchronization%s%s" % (source.name(), sink.name()), make_testcase(source, sink))
+ testklass = make_testcase(source, sink)
+ setattr(self, testklass.name(), testklass)
# Allow people to run the test directly
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]