equal
deleted
inserted
replaced
3 unittest). These will both pass when you run "manage.py test". |
3 unittest). These will both pass when you run "manage.py test". |
4 |
4 |
5 Replace these with more appropriate tests for your application. |
5 Replace these with more appropriate tests for your application. |
6 """ |
6 """ |
7 |
7 |
8 from ldt.ldt_utils.models import User, Media |
8 from django.contrib.auth import get_user_model |
|
9 from ldt.ldt_utils.models import Media |
9 from ldt.test.client import Client |
10 from ldt.test.client import Client |
10 from ldt.test.testcases import TestCase |
11 from ldt.test.testcases import TestCase |
|
12 |
|
13 User = get_user_model() |
11 |
14 |
12 class MediaTest(TestCase): |
15 class MediaTest(TestCase): |
13 |
16 |
14 fixtures = ['base_data.json', 'user_data.json'] |
17 fixtures = ['base_data.json', 'user_data.json'] |
15 |
18 |