[qmtest] derivation issues?

Mark Mitchell mark at codesourcery.com
Mon Dec 16 08:45:11 UTC 2002



--On Monday, December 16, 2002 03:01:57 AM -0500 "eichin at metacarta.com" 
<eichin at metacarta.com> wrote:

> Is there a reason I can't derive from (for example) ShellScriptTest?
> (I'm constructing a SubstitutedShellScriptTest using
> SubstitutionField, but it appears I can't "get at" ShellScriptTest via
> a simple import.)

I'd think you should be able to do that; what happens with:

  from command import ShellScriptTest

  class SubstitutedShellScriptTest(ShellScriptTest):
    pass

?

That should give you a new test class that actually behaves just like the
old one.

You'll have to do the "qmtest register" dance to get it recognized.

-- 
Mark Mitchell                mark at codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com



More information about the qmtest mailing list