from django.test import TestCase

from apps.core.models import EmailField


class TestsEmailField(TestCase):
    def test_email_field_lower_case(self):
        email = EmailField()
        assert email.get_prep_value("<EMAIL>") == "<EMAIL>"

    def test_email_field_none(self):
        email = EmailField()
        self.assertIsNone(email.get_prep_value(None))

from django.test import TestCase

from apps.core.models import EmailField


class TestsEmailField(TestCase):
    def test_email_field_lower_case(self):
        email = EmailField()
        assert email.get_prep_value("<EMAIL>") == "<EMAIL>"

    def test_email_field_none(self):
        email = EmailField()
        self.assertIsNone(email.get_prep_value(None))
