test_models.py 304 Bytes
from django.test import TestCase
from flashcards.models import User
class UserTests(TestCase):
def setUp(self):
u = User.objects.create(email="none@none.com",password="1234")
def test_section_list(self):
u = User.objects.get(email="none@none.com")
u.sections.add(None)