def assert_awaited(_mock_self):
    """
        Assert that the mock was awaited at least once.

        .. versionadded:: 0.12
        """
    self = _mock_self
    if self.await_count == 0:
        msg = "Expected '%s' to have been awaited." % self._mock_name or 'mock'
        raise AssertionError(msg)
