fixture.exc

Fixture exceptions

exception fixture.exc.UninitializedError
Bases: exceptions.Exception
exception fixture.exc.DataSetActionException(etype, val, dataset, key=None, row=None, stored_object=None)

Bases: exceptions.Exception

An exception while performing some action with a DataSet.

In addtion to etype and val adds these properties:

dataset
DataSet that caused the exception
key
Key on DataSet row if there is one
row
DataRow if there is one
stored_object
Stored object if there is one

used by fixture.loadable classes

exception fixture.exc.LoadError(etype, val, dataset, key=None, row=None, stored_object=None)

Bases: fixture.exc.DataSetActionException

An exception while loading data in DataSet.

used by fixture.loadable classes

exception fixture.exc.UnloadError(etype, val, dataset, key=None, row=None, stored_object=None)

Bases: fixture.exc.DataSetActionException

An exception while unloading data from a DataSet.

used by fixture.loadable classes

exception fixture.exc.StorageMediaNotFound

Bases: exceptions.LookupError

Looking up a storable object failed.

used by fixture.loadable classes

Previous topic

fixture.django_testcase

Next topic

fixture.io