Use tobe instead of testing the result of an equality
Merge pull request #1424 from tmcw/use-tobe

Use tobe instead of testing the result of an equality