Ticket #27419: tests.py

File tests.py, 428 bytes (added by Louis-Dominique Dubeau, 7 years ago)
Line 
1from django.test import TestCase
2
3from .models import *
4
5class TestFoo(TestCase):
6
7 def test(self):
8 parent = Foo(a="parent_a", b="parent_b")
9 parent.save()
10 foo = Foo(a="1a", b="1b", parent=parent)
11 foo.save()
12
13class TestBar(TestCase):
14
15 def test(self):
16 parent = Bar(a="parent_a", b="parent_b")
17 parent.save()
18 bar = Bar(a="1a", b="1b", parent=parent)
19 bar.save()
Back to Top