ophyd_async.core.assert_reading#

async ophyd_async.core.assert_reading(readable: AsyncReadable, expected_reading: Mapping[str, Reading]) None[source]#

Assert readings from readable.

Parameters:
  • readable – Callable with readable.read function that generate readings.

  • reading – The expected readings from the readable.

Notes

Example usage::

await assert_reading(readable, reading)