def assert_not_awaited(_mock_self):
    """
        Assert that the mock was never awaited.

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