from django.test import TestCase
from api.models import Email

# Create your tests here.


class TestEmailModel(TestCase):
    def setUp(self):
        Email.objects.create(
            name="john",
            email="john@email.com",
            message="this is a message"
        )

    def test_store_message(self):
        message = Email.objects.get(name="john").message
        self.assertEqual(message, "this is a message")

b9c32f52fc6afd9cdf759f47d3fe1a83907afd69
<mask token>


class TestEmailModel(TestCase):
    <mask token>
    <mask token>

<mask token>


class TestEmailModel(TestCase):

    def setUp(self):
        Email.objects.create(name='john', email='john@email.com', message=
            'this is a message')
    <mask token>

<mask token>


class TestEmailModel(TestCase):

    def setUp(self):
        Email.objects.create(name='john', email='john@email.com', message=
            'this is a message')

    def test_store_message(self):
        message = Email.objects.get(name='john').message
        self.assertEqual(message, 'this is a message')

from django.test import TestCase
from api.models import Email


class TestEmailModel(TestCase):

    def setUp(self):
        Email.objects.create(name='john', email='john@email.com', message=
            'this is a message')

    def test_store_message(self):
        message = Email.objects.get(name='john').message
        self.assertEqual(message, 'this is a message')

from django.test import TestCase
from api.models import Email

# Create your tests here.


class TestEmailModel(TestCase):
    def setUp(self):
        Email.objects.create(
            name="john",
            email="john@email.com",
            message="this is a message"
        )

    def test_store_message(self):
        message = Email.objects.get(name="john").message
        self.assertEqual(message, "this is a message")
