<filename>tests/test_bindings/test_provider_binding/test_from_provider_provider.py
import unittest
from unittest.mock import create_autospec

from opyoid.bindings import FromProviderProvider
from opyoid.provider import Provider


class TestFromProviderProvider(unittest.TestCase):
    def test_provider(self):
        provider_provider = create_autospec(Provider, spec_set=True)
        provider = FromProviderProvider(provider_provider)
        instance = provider.get()
        self.assertIs(instance, provider_provider.get.return_value.get.return_value)

<filename>tests/test_bindings/test_provider_binding/test_from_provider_provider.py
import unittest
from unittest.mock import create_autospec

from opyoid.bindings import FromProviderProvider
from opyoid.provider import Provider


class TestFromProviderProvider(unittest.TestCase):
    def test_provider(self):
        provider_provider = create_autospec(Provider, spec_set=True)
        provider = FromProviderProvider(provider_provider)
        instance = provider.get()
        self.assertIs(instance, provider_provider.get.return_value.get.return_value)
