11from __future__ import unicode_literals
22
33from django .test import TestCase , RequestFactory
4+ from django .contrib .auth .models import User
45from django .core .urlresolvers import reverse
56
6- from ..compat import urlparse , parse_qs , urlencode , get_user_model
7+ from ..compat import urlparse , parse_qs , urlencode
78from ..models import get_application_model
89from ..settings import oauth2_settings
910from ..views import ProtectedResourceView
@@ -21,8 +22,8 @@ def get(self, request, *args, **kwargs):
2122class BaseTest (TestCase ):
2223 def setUp (self ):
2324 self .factory = RequestFactory ()
24- self .test_user = get_user_model () .objects .create_user ("test_user" , "test@user.com" , "123456" )
25- self .dev_user = get_user_model () .objects .create_user ("dev_user" , "dev@user.com" , "123456" )
25+ self .test_user = User .objects .create_user ("test_user" , "test@user.com" , "123456" )
26+ self .dev_user = User .objects .create_user ("dev_user" , "dev@user.com" , "123456" )
2627
2728 self .application = Application (
2829 name = "Test Implicit Application" ,
0 commit comments