You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep reading Andrea. We change this later. --Sent from my BlackBerry. That's right, a phone with a real keyboard. Forget this decade, I'm off back to the naughties.Harry | 07887702511 | @hjwp From: Andrea CrottiSent: Saturday, 31 May 2014 10:05To: hjwp/Book-TDD-Web-Dev-PythonReply To: hjwp/Book-TDD-Web-Dev-PythonSubject: [Book-TDD-Web-Dev-Python] assertTrue or assertIn (#19)In chapter04 (I tried to comment directly in the code but the asciidoc doesn't let me by the way) there is this:
self.assertTrue(any(row.text) == '1: Buy peacock feathers' for row in rows)
It might be also written like this I think, which would be even easier adding another variable for the text in the rows.
self.assertIn('Buy peacock feathers', [row.text for row in rows])
—Reply to this email directly or view it on GitHub.
In chapter04 (I tried to comment directly in the code but the asciidoc doesn't let me by the way) there is this:
It might be also written like this I think, which would be even easier adding another variable for the text in the rows.
The text was updated successfully, but these errors were encountered: