Flag expressions not assigned (W0106).

* Replace some invocations of sure with unittest methods.