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
Structuredfor the abstract base class that defines the structured API.assert_sampler_apito assert that the structured sampler matches the sampler API.