16 lines
490 B
Python
Executable File
16 lines
490 B
Python
Executable File
from django.test import TestCase, Client
|
|
|
|
from django.urls import reverse
|
|
from django.contrib.auth.models import User
|
|
|
|
# Create your tests here.
|
|
|
|
|
|
#class TestUrls(TestCase):
|
|
# def setUp(self):
|
|
# User.objects.create_superuser("admin", "ross@xkjq.uk", "adminpassword")
|
|
#
|
|
# def test_index(self):
|
|
# self.client.login(username="admin", password="adminpassword")
|
|
# response = self.client.get(reverse('rapids:index'))
|
|
# self.assertEqual(response.status_code, 200) |