# Path: user_management/models/tests/factories.py
# class VerifyEmailUserFactory(UserFactory):
#     email_verified = False
# 
#     class Meta:
#         model = VerifyEmailUser
# 
# Path: user_management/models/tests/utils.py
# class APIRequestTestCase(Python2AssertMixin, BaseAPIRequestTestCase):
#     user_factory = UserFactory


import mock
from django.contrib.auth import get_user_model
from django.test import override_settings
from user_management.models.tests.factories import VerifyEmailUserFactory
from user_management.models.tests.utils import APIRequestTestCase
from .. import views


User = get_user_model()


@override_settings(AUTH_USER_MODEL='tests.VerifyEmailUser')
class TestVerifyAccountView(APIRequestTestCase):
    view_class = views.VerifyAccountViewMixin

    @classmethod
    def setUpTestData(cls):
        cls.request = mock.MagicMock
        cls.view_instance = cls.view_class()

# Path: user_management/models/tests/factories.py
# class VerifyEmailUserFactory(UserFactory):
#     email_verified = False
# 
#     class Meta:
#         model = VerifyEmailUser
# 
# Path: user_management/models/tests/utils.py
# class APIRequestTestCase(Python2AssertMixin, BaseAPIRequestTestCase):
#     user_factory = UserFactory


# Path: user_management/utils/tests/test_views.py
import mock
from django.contrib.auth import get_user_model
from django.test import override_settings
from user_management.models.tests.factories import VerifyEmailUserFactory
from user_management.models.tests.utils import APIRequestTestCase
from .. import views



User = get_user_model()


@override_settings(AUTH_USER_MODEL='tests.VerifyEmailUser')
class TestVerifyAccountView(APIRequestTestCase):
    view_class = views.VerifyAccountViewMixin

    @classmethod
    def setUpTestData(cls):
        cls.request = mock.MagicMock
        cls.view_instance = cls.view_class()

        cls.user = VerifyEmailUserFactory.create(email_verified=False)