Commits

James Emerton committed 56cff4a

Moved imports where they should be

  • Participants
  • Parent commits 9b2163d

Comments (0)

Files changed (1)

tests/test_project/apps/testapp/tests.py

 from django.test import TestCase
 from django.contrib.auth.models import User
 from django.utils import simplejson
+from django.conf import settings
 
 from piston import oauth
 from piston.models import Consumer, Token
+from piston.forms import OAuthAuthenticationForm
 
 try:
     import yaml
     print "Can't run YAML testsuite"
     yaml = None
 
-import urllib
-import base64
+import urllib, base64
 
 from test_project.apps.testapp.models import TestModel, ExpressiveTestModel, Comment, InheritedModel
 from test_project.apps.testapp import signals
 #            'oauth_callback': 'http://printer.example.com/request_token_ready',
 #            })
 
-        from piston.forms import OAuthAuthenticationForm
-        from django.conf import settings
         response = self.client.post('/api/oauth/authorize', {
             'oauth_token': oatoken.key,
             'oauth_callback': 'http://printer.example.com/request_token_ready',