You are not logged in Log in Join
You are here: Home » Members » Stefan's Home » ZopeTestCaseWiki » ApiReference

Log in
Name

Password

 
 

History for ApiReference

??changed:
-
<hr>

!ZopeTestCase API Reference

    Admittedly somewhat skeletal

<hr>

Module Testing.!ZopeTestCase

    Top-level package exposing names from contained modules. You should only ever need to import from here.

    Constants

        folder_name

        user_name

        user_password

        user_role

        standard_permissions

        portal_name

    Functions

        hasProduct(name)

        installProduct(name, quiet=0)

        app()

        close(app)

        main()

        _print(msg)

        !ZopeDocTestSuite()

        !ZopeDocFileSuite()

        !FunctionalDocTestSuite()

        !FunctionalDocFileSuite()

    Classes

        !TestCase

        !ZopeTestCase

        !FunctionalTestCase

        !PortalTestCase

        Profiled

        Sandboxed

        Functional

        !WarningsHook

    Modules

        !ZopeLite as Zope

        utils

        doctest

        transaction

<hr>

<hr>

Module !ZopeLite

    Lightweight replacement for the Zope module

    Constants

        DB

    Functions

        hasProduct(name)

        installProduct(name, quiet=0)

        app(connection=None)

        sandbox(base=None)

        startup()

        _print(msg)

<hr>

Module base

    Basic infrastructure for Zope testing

    Functions

        app()

        close(app)

    Classes

        !TestCase

<hr>

Class !TestCase

    Base test case for Zope testing                                                                  
    (derived from unittest.!TestCase)

    __implements__ = (!IZopeTestCase, !IProfiled)

    Methods

        afterSetUp()

        beforeTearDown()

        afterClear()

        beforeSetUp()

        beforeClose()
    
<hr>

Module !ZopeTestCase

    Default test case and fixture for Zope testing

    Constants

        folder_name

        user_name

        user_password

        user_role

        standard_permissions

    Classes

        !ZopeTestCase

        !FunctionalTestCase

<hr>
        
Class !ZopeTestCase
       
    Base test case for Zope testing
    (derived from base.!TestCase)

    __implements__ = (!IZopeSecurity, !IZopeTestCase, !IProfiled)

    Methods

        setRoles(roles, name=user_name)

        setPermissions(permissions, role=user_role)

        login(name=user_name)

        logout()

<hr>

Class !FunctionalTestCase

    Base class for functional unit tests
    (derived from Functional and !ZopeTestCase)

    __implements__ = (!IFunctional, !IZopeSecurity, !IZopeTestCase, !IProfiled)

    Methods

        publish(path, basic=None, env=None, extra=None, request_method="GET", stdin=None)

<hr>

Module !PortalTestCase

[157 more lines...]