<reponame>andyjohn23/awwards-clone
from django.test import TestCase
from .models import UserAccount

# Create your tests here.

class ProfileTest(TestCase):

    def test_useraccount_model_has_profile(self):
        user = UserAccount(
            email="<EMAIL>",
            username="andynick",
            password="<PASSWORD>"
        )
        user.save()

        self.assertTrue(
            hasattr(user, 'profile')
        )
