dimod.testing.asserts.assert_structured_api

assert_structured_api(sampler)[source]

Assert that an instantiated structured sampler exposes correct composite properties and methods.

Parameters:sampler (Structured) – User-made dimod structured sampler.
Raises:AssertionError – If the given sampler does not match the structured API.

See also

Structured for the abstract base class that defines the structured API.

assert_sampler_api to assert that the structured sampler matches the sampler API.