TST modernize some of the asserts
Merge pull request #835 from scrapy/modernize-asserts

[MRG] modernize some of the asserts