Finally, make all line lengths less than 80:

```
assert qapply(Rotation(pi/2, b, g)*JzKet(1, 1)) == I*exp(I*g)*cos(b)*JzKet(1,-1)/2 - I*exp(I*g)*JzKet(1,-1)/2 + sqrt(2)*I*sin(b)*JzKet(1,0)/2 - I*exp(-I*g)*cos(b)*JzKet(1,1)/2 - I*exp(-I*g)*JzKet(1,1)/2

assert qapply(Rotation(pi/2, b, g)*JzKet(1, 1)) == (
    I*exp(I*g)*cos(b)*JzKet(1,-1)/2 - I*exp(I*g)*JzKet(1,-1)/2 +
    sqrt(2)*I*sin(b)*JzKet(1,0)/2 - I*exp(-I*g)*cos(b)*JzKet(1,1)/2 -
    I*exp(-I*g)*JzKet(1,1)/2)
```

By using the open paren after the `==` all subsequent lines can be wrapped without continuation characters.