Mike Naberezny avatar Mike Naberezny committed 32380ad

[svn r878] - Fixed test_suite to use the correct module name in setup.py.

- Fixed the tests for memmon to import the correct module.

Comments (0)

Files changed (3)

trunk/CHANGES.txt

 superlance Changelog
 ====================
 
+Next Release
+
+- Fixed test_suite to use the correct module name in setup.py.
+
+- Fixed the tests for memmon to import the correct module.
+
 0.5 (2009-05-24)
 
 - Added ``memmon`` script, originally bundled with supervisor and
       tests_require=[
             'supervisor',
             ],
-      test_suite="superlance",
+      test_suite='superlance.tests',
       entry_points = """\
       [console_scripts]
       httpok = superlance.httpok:main

trunk/superlance/tests.py

 
 class MemmonTests(unittest.TestCase):
     def _getTargetClass(self):
-        from supervisor.memmon import Memmon
+        from superlance.memmon import Memmon
         return Memmon
     
     def _makeOne(self, *opts):
         return self._getTargetClass()(*opts)
 
     def _makeOnePopulated(self, programs, groups, any):
-        from supervisor.tests.base import DummyRPCServer
         rpc = DummyRPCServer()
         sendmail = 'cat - > /dev/null'
         email = 'chrism@plope.com'
     def stopProcess(self, name):
         from supervisor import xmlrpc
         from xmlrpclib import Fault
+        if name == 'BAD_NAME:BAD_NAME':
+            raise Fault(xmlrpc.Faults.BAD_NAME, 'BAD_NAME:BAD_NAME') 
         if name.endswith('FAILED'):
             raise Fault(xmlrpc.Faults.FAILED, 'FAILED')
         return True
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.