Index of the testtools module
-
m
testtools
...
- Tools for controlling test environments.
- a __repos_url__ ...
- a __trunk_version__ ...
-
m
stubs
...
- Tools for replacing objects with stubs.
- a StringTypes ...
- C Stub ... - Replace an object with a stub object
-
C
stub_template
...
-
C
NoValue
...
- f mkinterface ... - make a class having the same interface as cls.
- m storage ... - Fixture storage media.
-
m
io
...
- IO-related testing tools.
-
C
TempIO
...
- self-destructable temporary directory root.
- f mkfile ... - makes a filename in root.
- f __del__ ... - removes the root directory and everything under it.
- f mkdir ... - makes a directory in the root and returns its full path.
- f newdir ... - makes a directory in the root.
- f putfile ... - puts new filename relative to your TempIO root.
- f __init__ ...
- f mkdirall ... - walks the path and makes any non-existant dirs.
- f readfile ... - debug util that returns file contents.
- f putfile ... - opens filename in writing mode, writes contents and closes.
-
C
TempIO
...
- self-destructable temporary directory root.
- m exceptions ... - exceptions used in testtools
-
m
config
...
- common configuration settings.
- C debug ... - namespace for debug settings.
- f reset_debug ... - resets debug stream to the last stream -OR- kwarg strm.
- f set_debug_stderr ... - convenience method for set_debug_stream(sys.stderr).
- f set_debug_stdout ... - convenience method for set_debug_stream(sys.stdout).
- f set_debug_stream ... - tells debug print statements to use strm.
-
m
fixtures
...
- Provides tools to load and inspect test data.
- a CO_GENERATOR ...
-
m
fixtures
...
-
C
affix
...
- returns a collection of Fixture instances, all attributes shared.
- C RequiredPool ... - encapsulates other fixtures required by a Fixture.
-
C
meta
...
- namespace for Fixture properties.
- C Values ... - encapsulates a Fixture's values (dataset).
- f load ...
- f add_fixture ... - merges attributes from another fixture into self.
- f assert_has ... - assert this fixture has a dataset somewhere in it.
- f clean ...
- f close ...
- f items ... - yields (fixture_key, fixture) in self.
- f data ... - hook for subclasses to return a data definition.
- f __len__ ...
-
C
Fixture
...
- Encapsulates one or more datasets to be loaded into a storage medium.
- f load ... - load all data using stor_obj.save().
- f add_fixture ... - merges attributes from another fixture into self.
- f assert_has ... - assert this fixture has a dataset somewhere in it.
- f __init__ ... - see Fixture for signature.
- f clean ... - perform clean() on all storage objects loaded for this instance only.
- f close ...
- f items ... - yields (fixture_key, fixture) in self.
- f data ... - hook for subclasses to return a data definition.
- f __len__ ...
- f wraps ...
- f is_generator ...
- f with_fixtures ... - decorator that attaches fixtures to a test def.
- f metamethod ... - makes a method Fixture.meta -compatible
-
C
affix
...
- returns a collection of Fixture instances, all attributes shared.
-
m
registry
...
- Private registry for the Fixture class.
-
C
LoadMap
...
- registry of loaded fixtures.
- a registry ...
- C ID ...
- f populate ... - populates fixture instance with loaded fixture.
- f unregister ... - tell registry that this fixture has been unloaded (Fixture.clean()).
- f clear ...
- f register ... - registers a fixture that has been loaded.
- f update ... - updates registered fixture's loaded data.
- f is_registered ... - return True if this fixture is registered as loaded
- f __init__ ...
- f unregister_fixtures ... - remove any and all registered fixtures from the registry.
-
C
LoadMap
...
- registry of loaded fixtures.
-
m
storable
...
- Storable Fixture objects.
-
C
SOFixture
...
- Fixture storable by an SQLObject.
- f find_so_class ... - searches meta.env for an SQLObject named by meta.finder.
- f __init__ ...
- C CsvFixture ... - Fixture storable as a CSV file.
- f find_so_from_table ... - finder method for SOFixture that transforms your fixture class as if it were a table name.
- f find_so_from_data ... - finder method for SOFixture that transforms SomeFixtureData into the name SomeFixture.
- f find_so_from_fixture ... - finder method for SOFixture that passes through your fixture name (no transformation).
-
C
SOFixture
...
- Fixture storable by an SQLObject.