<reponame>zollf/CITS3200<gh_stars>0
from django.test import TestCase, Client
from django.urls import reverse
from app.authentication.models import User

class IndexViewTest(TestCase):
    def setUp(self):
        my_admin = User.objects.create_superuser('<EMAIL>',
                                                 'testpassword', '<PASSWORD>', username="testadmin")
        self.client = Client()
        self.client.login(username="testadmin", password="<PASSWORD>")

    def tearDown(self):
        pass

    def test_page(self):
        response = self.client.get(reverse('index'))
        self.assertEqual(response.status_code, 200)

from django.test import TestCase, Client
from django.urls import reverse
from app.authentication.models import User

class IndexViewTest(TestCase):
    def setUp(self):
        my_admin = User.objects.create_superuser('<EMAIL>',
                                                 'testpassword', '<PASSWORD>', username="testadmin")
        self.client = Client()
        self.client.login(username="testadmin", password="<PASSWORD>")

    def tearDown(self):
        pass

    def test_page(self):
        response = self.client.get(reverse('index'))
        self.assertEqual(response.status_code, 200)