Skip to content

Instantly share code, notes, and snippets.

@gregturn
Created September 17, 2010 15:42
Show Gist options
  • Save gregturn/584415 to your computer and use it in GitHub Desktop.
Save gregturn/584415 to your computer and use it in GitHub Desktop.
import sys
err = sys.stderr
import nose
from nose.plugins import Plugin
class RegexPicker(Plugin):
name = "regexpicker"
def __init__(self):
Plugin.__init__(self)
self.verbose = False
def options(self, parser, env):
Plugin.options(self, parser, env)
err.write("Parsing options...")
def configure(self, options, conf):
Plugin.configure(self, options, conf)
err.write("Configuring options...")
def wantMethod(self, method):
err.write("Evaluating testing method %s" % method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment