bia-fitness/lifting/tests.py
2015-04-10 14:19:12 -04:00

11 lines
348 B
Python

from django.test import TestCase
from django.contrib.auth.models import User
from lifting.models import LiftingOptions
class TestLiftingOptions(TestCase):
def test_signal(self):
u = User.objects.create_user(username='test', email='test@example.com', password='test')
assert LiftingOptions.objects.filter(user=u).count() == 1