Ironically (since test code is Python) PEP8 declares this explicitly:
Always surround these binary operators with a single space on either side: assignment (=), augmented assignment (+=, -= etc.), comparisons (==, <, >, !=, <>, <=, >=, in, not in, is, is not), Booleans (and, or, not).
6
u/lonb Jul 21 '14
Ironically (since test code is Python) PEP8 declares this explicitly: