from django.test import TestCase
from .models import User

# Create your tests here.
class StudentAccountTestCase(TestCase):
    def testNonStudentEmail(self) -> None:
        result = User.objects.create(email="nonstudent@gmail.com",first_name="Test",last_name="Case")
        self.assertIsNone(result)
    def testStudentEmail(self):
        result = User.objects.create(email="nonstudent@tamu.edu",first_name="Test",last_name="Case")
        self.assertIsNotNone(result)
        
162e4ceebc46c9a73157ffc33652a02d8b9be3af
<mask token>


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

<mask token>


class StudentAccountTestCase(TestCase):
    <mask token>

    def testStudentEmail(self):
        result = User.objects.create(email='nonstudent@tamu.edu',
            first_name='Test', last_name='Case')
        self.assertIsNotNone(result)

<mask token>


class StudentAccountTestCase(TestCase):

    def testNonStudentEmail(self) ->None:
        result = User.objects.create(email='nonstudent@gmail.com',
            first_name='Test', last_name='Case')
        self.assertIsNone(result)

    def testStudentEmail(self):
        result = User.objects.create(email='nonstudent@tamu.edu',
            first_name='Test', last_name='Case')
        self.assertIsNotNone(result)

from django.test import TestCase
from .models import User


class StudentAccountTestCase(TestCase):

    def testNonStudentEmail(self) ->None:
        result = User.objects.create(email='nonstudent@gmail.com',
            first_name='Test', last_name='Case')
        self.assertIsNone(result)

    def testStudentEmail(self):
        result = User.objects.create(email='nonstudent@tamu.edu',
            first_name='Test', last_name='Case')
        self.assertIsNotNone(result)

from django.test import TestCase
from .models import User

# Create your tests here.
class StudentAccountTestCase(TestCase):
    def testNonStudentEmail(self) -> None:
        result = User.objects.create(email="nonstudent@gmail.com",first_name="Test",last_name="Case")
        self.assertIsNone(result)
    def testStudentEmail(self):
        result = User.objects.create(email="nonstudent@tamu.edu",first_name="Test",last_name="Case")
        self.assertIsNotNone(result)
        