Skip to content

Commit

Permalink
add test check necu email
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitgeddam committed Oct 9, 2022
1 parent 6de4f4f commit c7f4ae1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from django.test import SimpleTestCase
from django.urls import reverse, resolve
from src.base import utils


class TestUrls(SimpleTestCase):
def test_(self):
valid_ncsu_email = "abcd@ncsu.edu"
invalid_ncsu_email = "abcd@gmail.com"

self.assertEquals(utils.check_ncsu_email(valid_ncsu_email), True)
self.assertEquals(utils.check_ncsu_email(invalid_ncsu_email), False)

0 comments on commit c7f4ae1

Please sign in to comment.