| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Twisted
Revision: 24675
Author: therve
Date: 02 Sep 2008 12:02:00
Diff at Trac: http://twistedmatrix.com/trac/changeset/24675
Changes:Diff:| ... | ...@@ -1090,24 +1090,18 @@ | |
| 1090 | 1090 | @ivar serviceName: fully qualified name of C{stubService}. |
| 1091 | 1091 | @type serviceName: C{str} |
| 1092 | 1092 | """ |
| 1093 | stubService = None | |
| 1093 | 1094 | |
| 1094 | 1095 | def setUp(self): |
| 1095 | 1096 | self.plugin = RunPlugin() |
| 1097 | stubService = StubServiceMaker() | |
| 1098 | directlyProvides(stubService, service.ISimpleServiceMaker) | |
| 1096 | 1099 | cls = self.__class__ |
| 1097 | cls.stubService = StubServiceMaker() | |
| 1098 | directlyProvides(cls.stubService, service.ISimpleServiceMaker) | |
| 1100 | self.patch(cls, "stubService", stubService) | |
| 1099 | 1101 | self.serviceName = "%s.%s.stubService" % ( |
| 1100 | 1102 | RunPluginTests.__module__, cls.__name__) |
| 1101 | 1103 | |
| 1102 | 1104 | |
| 1103 | def tearDown(self): | |
| 1104 | """ | |
| 1105 | Cleanup class variables. | |
| 1106 | """ | |
| 1107 | cls = self.__class__ | |
| 1108 | cls.stubService = None | |
| 1109 | ||
| 1110 | ||
| 1111 | 1105 | def test_nonExistentPackage(self): |
| 1112 | 1106 | """ |
| 1113 | 1107 | Running a non existent package raises C{ValueError}, as done by |