Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed trailing whitespace.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4e476b44afec10181114b6f1e06df74f4435e202 1 parent 2292ebb
Gary Wilson Jr. authored September 04, 2007

Showing 1 changed file with 22 additions and 22 deletions. Show diff stats Hide diff stats

  1. 44  tests/modeltests/test_client/views.py
44  tests/modeltests/test_client/views.py
@@ -12,7 +12,7 @@ def get_view(request):
12 12
     "A simple view that expects a GET request, and returns a rendered template"
13 13
     t = Template('This is a test. {{ var }} is the value.', name='GET Template')
14 14
     c = Context({'var': request.GET.get('var', 42)})
15  
-    
  15
+
16 16
     return HttpResponse(t.render(c))
17 17
 
18 18
 def post_view(request):
@@ -29,9 +29,9 @@ def post_view(request):
29 29
     else:
30 30
         t = Template('Viewing GET page.', name='Empty GET Template')
31 31
         c = Context()
32  
-    
  32
+
33 33
     return HttpResponse(t.render(c))
34  
-    
  34
+
35 35
 def raw_post_view(request):
36 36
     """A view which expects raw XML to be posted and returns content extracted
37 37
     from the XML"""
@@ -78,7 +78,7 @@ class TestForm(Form):
78 78
     value = fields.IntegerField()
79 79
     single = fields.ChoiceField(choices=TestChoices)
80 80
     multi = fields.MultipleChoiceField(choices=TestChoices)
81  
-    
  81
+
82 82
 def form_view(request):
83 83
     "A view that tests a simple form"
84 84
     if request.method == 'POST':
@@ -93,7 +93,7 @@ def form_view(request):
93 93
         form = TestForm(request.GET)
94 94
         t = Template('Viewing base form. {{ form }}.', name='Form GET Template')
95 95
         c = Context({'form': form})
96  
-    
  96
+
97 97
     return HttpResponse(t.render(c))
98 98
 
99 99
 def form_view_with_template(request):
@@ -107,26 +107,26 @@ def form_view_with_template(request):
107 107
     else:
108 108
         form = TestForm()
109 109
         message = 'GET form page'
110  
-    return render_to_response('form_view.html', 
111  
-        { 
  110
+    return render_to_response('form_view.html',
  111
+        {
112 112
             'form': form,
113 113
             'message': message
114 114
         }
115 115
     )
116  
-        
  116
+
117 117
 def login_protected_view(request):
118 118
     "A simple view that is login protected."
119 119
     t = Template('This is a login protected test. Username is {{ user.username }}.', name='Login Template')
120 120
     c = Context({'user': request.user})
121  
-    
  121
+
122 122
     return HttpResponse(t.render(c))
123 123
 login_protected_view = login_required(login_protected_view)
124 124
 
125 125
 def session_view(request):
126 126
     "A view that modifies the session"
127 127
     request.session['tobacconist'] = 'hovercraft'
128  
-    
129  
-    t = Template('This is a view that modifies the session.', 
  128
+
  129
+    t = Template('This is a view that modifies the session.',
130 130
                  name='Session Modifying View Template')
131 131
     c = Context()
132 132
     return HttpResponse(t.render(c))
@@ -137,25 +137,25 @@ def broken_view(request):
137 137
 
138 138
 def mail_sending_view(request):
139 139
     EmailMessage(
140  
-        "Test message", 
141  
-        "This is a test email", 
142  
-        "from@example.com", 
  140
+        "Test message",
  141
+        "This is a test email",
  142
+        "from@example.com",
143 143
         ['first@example.com', 'second@example.com']).send()
144 144
     return HttpResponse("Mail sent")
145 145
 
146 146
 def mass_mail_sending_view(request):
147 147
     m1 = EmailMessage(
148  
-        'First Test message', 
149  
-        'This is the first test email', 
150  
-        'from@example.com', 
  148
+        'First Test message',
  149
+        'This is the first test email',
  150
+        'from@example.com',
151 151
         ['first@example.com', 'second@example.com'])
152 152
     m2 = EmailMessage(
153  
-        'Second Test message', 
154  
-        'This is the second test email', 
155  
-        'from@example.com', 
  153
+        'Second Test message',
  154
+        'This is the second test email',
  155
+        'from@example.com',
156 156
         ['second@example.com', 'third@example.com'])
157  
-    
  157
+
158 158
     c = SMTPConnection()
159 159
     c.send_messages([m1,m2])
160  
-    
  160
+
161 161
     return HttpResponse("Mail sent")

0 notes on commit 4e476b4

Please sign in to comment.
Something went wrong with that request. Please try again.