how to write unittest for variable assignment in python?,do_something()