mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
12 lines
364 B
Python
12 lines
364 B
Python
from django.test import TestCase
|
|
from .models import Domain
|
|
|
|
# Create your tests here.
|
|
|
|
class DomainModelTest(TestCase):
|
|
def test_create_domain(self):
|
|
domain = Domain.objects.create(name="Mathématiques", cycle=1)
|
|
self.assertEqual(domain.name, "Mathématiques")
|
|
self.assertEqual(domain.cycle, 1)
|
|
self.assertIsNotNone(domain.id)
|