# Path: src/oscarapicheckout/tests/base.py
# class BaseTest(APITestCase):
#     def setUp(self):
#         Country.objects.create(
#             display_order=0,
#             is_shipping_country=True,
#             iso_3166_1_a2="US",
#             iso_3166_1_a3="USA",
#             iso_3166_1_numeric="840",
#             name="United States of America",
#             printable_name="United States",
#         )
# 
#     def login(self, is_staff=False, email="joe@example.com"):
#         user = User.objects.create_user(username="joe", password="schmoe", email=email)
#         user.is_staff = is_staff
#         user.save()
#         self.client.login(username="joe", password="schmoe")
#         return user


from rest_framework import status
from rest_framework.reverse import reverse
from .base import BaseTest
                            "choices": [
                                {"value": "credit-card", "display_name": "Credit Card"}
                            ],
                        },
                        "enabled": {
                            "type": "boolean",
                            "required": False,
                            "read_only": False,
                            "label": "Enabled",
                        },
                        "pay_balance": {
                            "type": "boolean",
                            "required": False,
                            "read_only": False,
                            "label": "Pay balance",
                        },
                        "amount": {
                            "type": "decimal",
                            "required": False,
                            "read_only": False,
                            "label": "Amount",
                        },
                        "reference": {
                            "type": "string",
                            "required": False,
                            "read_only": False,
                            "label": "Reference",
                            "max_length": 128,
                        },
                    },

# Path: src/oscarapicheckout/tests/base.py
# class BaseTest(APITestCase):
#     def setUp(self):
#         Country.objects.create(
#             display_order=0,
#             is_shipping_country=True,
#             iso_3166_1_a2="US",
#             iso_3166_1_a3="USA",
#             iso_3166_1_numeric="840",
#             name="United States of America",
#             printable_name="United States",
#         )
# 
#     def login(self, is_staff=False, email="joe@example.com"):
#         user = User.objects.create_user(username="joe", password="schmoe", email=email)
#         user.is_staff = is_staff
#         user.save()
#         self.client.login(username="joe", password="schmoe")
#         return user


# Path: src/oscarapicheckout/tests/test_payment_method_introspection.py
from rest_framework import status
from rest_framework.reverse import reverse
from .base import BaseTest

                            "choices": [
                                {"value": "credit-card", "display_name": "Credit Card"}
                            ],
                        },
                        "enabled": {
                            "type": "boolean",
                            "required": False,
                            "read_only": False,
                            "label": "Enabled",
                        },
                        "pay_balance": {
                            "type": "boolean",
                            "required": False,
                            "read_only": False,
                            "label": "Pay balance",
                        },
                        "amount": {
                            "type": "decimal",
                            "required": False,
                            "read_only": False,
                            "label": "Amount",
                        },
                        "reference": {
                            "type": "string",
                            "required": False,
                            "read_only": False,
                            "label": "Reference",
                            "max_length": 128,
                        },
                    },

                },