Skip to content
Browse files

a couple of new tests

  • Loading branch information...
1 parent b3f129f commit c29ab1225159e8296cfef7427968db95dd99ae05 @sigma sigma committed Nov 1, 2010
Showing with 11 additions and 0 deletions.
  1. +3 −0 tests/test_echo.py
  2. +8 −0 tests/test_getallplugins.py
View
3 tests/test_echo.py
@@ -25,6 +25,9 @@ def _testEchoBase(self, msg):
def testEcho(self):
self._testEchoBase("plop")
+ def testEchoEmpty(self):
+ self._testEchoBase("")
+
def testEchoLong(self):
self._testEchoBase("repeated pattern"*50)
View
8 tests/test_getallplugins.py
@@ -31,6 +31,14 @@ def testBasicPlugin(self):
'display': 'Plop'}]}
self._testPluginBase(_params)
+ def testEmptyPlugin(self):
+ _params = {'plugins': [{}]}
+ self._testPluginBase(_params)
+
+ def testNoPlugin(self):
+ _params = {}
+ self._testPluginBase(_params)
+
def testIncompletePlugins(self):
_params = {'plugins': [{'version': '0.1',
'desc': 'plop plug-in',

0 comments on commit c29ab12

Please sign in to comment.
Something went wrong with that request. Please try again.