Re: Is assertIs being misused in Tutorial Part 5?

2018-10-26 Thread John Meyer
O, I see what you are saying; False is not really a bool.When the function returns a false value, the code returns the following: AssertionError: False is not >>> >>> >>> >>>

Re: Is assertIs being misused in Tutorial Part 5?

2018-10-26 Thread John Meyer
> > The reason why assertIs is used instead of assertFalse is that the latter > actually tests for falsy values and can sometimes hide bugs. I understand that if the return type is not pure boolean, it can still evaluate to a boolean value. I tested the following and it possible to do the ty

Is assertIs being misused in Tutorial Part 5?

2018-10-25 Thread John Meyer
tests.py in the tutorial gives this example: self.assertIs(future_question.was_published_recently(), False) This implies that assertIs tests equality of two booleans. The code works, but not for the right reason, as per the language do

Re: Error running Django tutorial

2018-09-21 Thread John Meyer
I have been testing this tutorial frequently over the last few days (with success) and am using an empty string ( ‘’ ) for the route (first argument to path) in the app’s urls.py, rather than the ‘raw’ string value I see in the earlier posts here. -- You received this message because you are