2017-02-09 21:04:32 +01:00
|
|
|
from django.test import TestCase
|
|
|
|
|
2017-02-11 17:13:48 +01:00
|
|
|
from gestion.tests import create_profile
|
|
|
|
|
|
|
|
from .models import BdsProfile
|
|
|
|
|
|
|
|
class TestBdsProfile(TestCase):
|
|
|
|
def test_profile(self):
|
|
|
|
# each bdspofile should have an associated profile
|
|
|
|
p = create_profile('foo')
|
|
|
|
bdsp = BdsProfile.objects.create(profile=p)
|
|
|
|
self.assertEqual(p.bds, bdsp)
|