2015-03-31 21:26:03 +00:00
|
|
|
from django.test import TestCase
|
2015-04-01 21:57:30 +00:00
|
|
|
from django.contrib.auth.models import User
|
2015-04-10 18:19:12 +00:00
|
|
|
from lifting.models import LiftingOptions
|
2015-03-31 21:26:03 +00:00
|
|
|
|
|
|
|
|
2015-04-10 18:19:12 +00:00
|
|
|
class TestLiftingOptions(TestCase):
|
2015-03-31 21:26:03 +00:00
|
|
|
|
2015-04-10 18:19:12 +00:00
|
|
|
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
|