﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28429	Doc error	xylle	nobody	"Hello,
in the chapter ""Writing your first Django app, part 5""
iI have problems with  ""Create a test to expose the bug""

If i use : ""from .models import Question""
I have 

{{{
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
FF
======================================================================
FAIL: test_was_published_recently_with_old_question (polls.tests.QuestionModelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/srv/mysite/polls/tests.py"", line 18, in test_was_published_recently_with_old_question
    self.assertIs(old_question.was_published_recently(), False)
AssertionError: None is not False

======================================================================
FAIL: test_was_published_recently_with_recent_question (polls.tests.QuestionModelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/srv/mysite/polls/tests.py"", line 27, in test_was_published_recently_with_recent_question
    self.assertIs(recent_question.was_published_recently(), True)
AssertionError: None is not True

----------------------------------------------------------------------
Ran 2 tests in 0.002s

FAILED (failures=2)
Destroying test database for alias 'default'...

}}}
If i use : ""from polls.models import Question""
I have

{{{
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
..
----------------------------------------------------------------------
Ran 2 tests in 0.002s

OK
Destroying test database for alias 'default'...

}}}

""from polls.models import Question"" is correct or, I have an error elsewhere?

PS
Django VERSION : (1, 11, 3, 'final', 0) installed by pip
OS : Debian Stretch 9
Python version : 3.5.3 installed by apt."	Bug	closed	Documentation	1.11	Normal	invalid			Unreviewed	0	0	0	0	0	0
