def assert_awaited(_mock_self):
    """
        Assert that the mock was awaited at least once.
        """
    self = _mock_self
    if self.await_count == 0:
        msg = f"Expected {self._mock_name or 'mock'} to have been awaited."
        raise AssertionError(msg)
