# Path: mollie/api/objects/issuer.py
# class Issuer(ObjectBase):
#     @property
#     def resource(self):
#         return self._get_property("resource")
# 
#     @property
#     def id(self):
#         return self._get_property("id")
# 
#     @property
#     def name(self):
#         return self._get_property("name")
# 
#     @property
#     def image_svg(self):
#         images = self._get_property("image")
#         return images["svg"]
# 
#     @property
#     def image_size1x(self):
#         images = self._get_property("image")
#         return images["size1x"]
# 
#     @property
#     def image_size2x(self):
#         images = self._get_property("image")
#         return images["size2x"]
# 
# Path: tests/utils.py
# def assert_list_object(obj, object_type, count=None):
#     """Assert that a List object is correctly working, and has sane contents."""
#     assert isinstance(obj, ObjectList), f"Object {obj} is not a ObjectList instance."
#     assert isinstance(obj.count, int), "ObjectList count is not an integer."
#     if count is not None:
#         assert obj.count == count, "ObjectList does not contain the expected number of items."
#     else:
#         assert obj.count > 0, "ObjectList has no items."
# 
#     # verify items in list
#     items = []
#     for item in obj:
#         assert isinstance(item, object_type)
#         assert item.id is not None
#         items.append(item.id)
# 
#     assert len(items) == obj.count, "Items in ObjectList don't match list count."
#     assert len(set(items)) == obj.count, "Not all object ids in the ObjectList are unique."


from mollie.api.objects.issuer import Issuer
from .utils import assert_list_object



def test_get_issuers(client, response):
    """Get all the iDeal issuers via the include querystring parameter."""
    response.get("https://api.mollie.com/v2/methods/ideal?include=issuers", "method_get_ideal_with_includes")

    issuers = client.methods.get("ideal", include="issuers").issuers

# Path: mollie/api/objects/issuer.py
# class Issuer(ObjectBase):
#     @property
#     def resource(self):
#         return self._get_property("resource")
# 
#     @property
#     def id(self):
#         return self._get_property("id")
# 
#     @property
#     def name(self):
#         return self._get_property("name")
# 
#     @property
#     def image_svg(self):
#         images = self._get_property("image")
#         return images["svg"]
# 
#     @property
#     def image_size1x(self):
#         images = self._get_property("image")
#         return images["size1x"]
# 
#     @property
#     def image_size2x(self):
#         images = self._get_property("image")
#         return images["size2x"]
# 
# Path: tests/utils.py
# def assert_list_object(obj, object_type, count=None):
#     """Assert that a List object is correctly working, and has sane contents."""
#     assert isinstance(obj, ObjectList), f"Object {obj} is not a ObjectList instance."
#     assert isinstance(obj.count, int), "ObjectList count is not an integer."
#     if count is not None:
#         assert obj.count == count, "ObjectList does not contain the expected number of items."
#     else:
#         assert obj.count > 0, "ObjectList has no items."
# 
#     # verify items in list
#     items = []
#     for item in obj:
#         assert isinstance(item, object_type)
#         assert item.id is not None
#         items.append(item.id)
# 
#     assert len(items) == obj.count, "Items in ObjectList don't match list count."
#     assert len(set(items)) == obj.count, "Not all object ids in the ObjectList are unique."


# Path: tests/test_issuers.py
from mollie.api.objects.issuer import Issuer
from .utils import assert_list_object




def test_get_issuers(client, response):
    """Get all the iDeal issuers via the include querystring parameter."""
    response.get("https://api.mollie.com/v2/methods/ideal?include=issuers", "method_get_ideal_with_includes")

    issuers = client.methods.get("ideal", include="issuers").issuers

    assert_list_object(issuers, Issuer)