      raise KeyError("Oops! Looks like you wrote some bad code.")
  
  def mail_sending_view(request):
      EmailMessage(
          "Test message", 
          "This is a test email", 
          "from@example.com", 
          ['first@example.com', 'second@example.com']).send()
      return HttpResponse("Mail sent")
  
  def mass_mail_sending_view(request):
      m1 = EmailMessage(
 
</s> remove         'First Test message', 
        'This is the first test email', 
        'from@example.com', 
 </s> add         'First Test message',
        'This is the first test email',
        'from@example.com', </s> remove     
    t = Template('This is a view that modifies the session.', 
 </s> add     t = Template('This is a view that modifies the session.', </s> remove         'Second Test message', 
        'This is the second test email', 
        'from@example.com', 
 </s> add         'Second Test message',
        'This is the second test email',
        'from@example.com', </s> remove     return render_to_response('form_view.html', 
        { 
 </s> add     return render_to_response('form_view.html',
        {
        "Test message",
        "This is a test email",
        "from@example.com",
      raise KeyError("Oops! Looks like you wrote some bad code.")
  
  def mail_sending_view(request):
      EmailMessage(
        "Test message",
        "This is a test email",
        "from@example.com",
        "Test message",
        "This is a test email",
        "from@example.com",
        "Test message",
        "This is a test email",
        "from@example.com",
          ['first@example.com', 'second@example.com']).send()
      return HttpResponse("Mail sent")
  
  def mass_mail_sending_view(request):
      m1 = EmailMessage(
keep keep keep keep replace replace replace keep keep keep keep keep
 Removed trailing whitespace.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6046 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/modeltests/test_client/views.py