import pytest
from ec2userkeyd.methods import base


class TestSource(base.BaseCredentialSource):

    def get(self, username, role):
        return {'Code': 'Success'}


def test_base_config(mocker):
    mocker.patch.object(base.config, 'method_TestSource', create=True)
    s = TestSource()
    assert isinstance(s.config, mocker.Mock)

80d6007188c75e8715c800f282fe8b28bd53a330
<mask token>


class TestSource(base.BaseCredentialSource):
    <mask token>


<mask token>

<mask token>


class TestSource(base.BaseCredentialSource):

    def get(self, username, role):
        return {'Code': 'Success'}


<mask token>

<mask token>


class TestSource(base.BaseCredentialSource):

    def get(self, username, role):
        return {'Code': 'Success'}


def test_base_config(mocker):
    mocker.patch.object(base.config, 'method_TestSource', create=True)
    s = TestSource()
    assert isinstance(s.config, mocker.Mock)

import pytest
from ec2userkeyd.methods import base


class TestSource(base.BaseCredentialSource):

    def get(self, username, role):
        return {'Code': 'Success'}


def test_base_config(mocker):
    mocker.patch.object(base.config, 'method_TestSource', create=True)
    s = TestSource()
    assert isinstance(s.config, mocker.Mock)
