#26689: Tutorial05 "polls/tests.py" tabbing issue
-------------------------------+--------------------
     Reporter:  dougvought     |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Documentation  |    Version:  1.9
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  1
-------------------------------+--------------------
 I noticed a visual issue that caused me to incorrectly copy the code for
 this section:

 https://docs.djangoproject.com/en/1.9/intro/tutorial05/#create-a-test-to-
 expose-the-bug

 In the "Create a test to expose the bug" section, this code block in
 "polls/test.py"

 {{{
 #polls/test.py
 #...
 self.assertEqual(future_question.was_published_recently(), False)
 }}}

 gets pushed over and "loses" its tab, making it appear outside of the
 function scope.

 '''To reproduce:'''

 1. Open a browser window (FireFox 46.0.1 or Chrome 50.0.2661.102 m) with a
 width greater than 822px
 2. Go to https://docs.djangoproject.com/en/1.9/intro/tutorial05/#create-a
 -test-to-expose-the-bug
 3. Resize the window so that its width is smaller than 822px
 4. The self.assertEqual part "jumps" to the same tab level as the
 QuestionMethodTests class.

--
Ticket URL: <https://code.djangoproject.com/ticket/26689>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.4fa83100c7cd00b5137e5ac737602087%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to