Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 489 Bytes
import sys
from optparse import OptionParser
parser = OptionParser()
(options, args) = parser.parse_args()
if len(args) != 1:
print "usage: test.py otfbot.plugins.service.somePlugin"
print "i.e.: test.py otfbot.plugins.ircClient.ki"
sys.exit(1)
import doctest
try:
print args[0]
module = __import__(args[0], fromlist=["*"])
print module
doctest.testmod(module, verbose=True)
except ImportError, e:
print "import error for module \"%s\" %s" % (args[0], e)
You can’t perform that action at this time.