django-mergeobject-experime.../tests/tests.py

9 lines
272 B
Python
Raw Normal View History

2015-05-28 04:21:04 +00:00
from django.test import TestCase
from .models import Person, Number, SSN
def setUp():
a = Person.objects.create(name='alf')
b = Person.objects.create(name='bee')
Number.objects.create(person=a, number='123')
Number.objects.create(person=a, number='1234')