No this code is useful to independently test your class. However you should code it such that it's generic and works on any system. If you look at the other Freeseer files we use this quite often with the if __name__ == '__main__' format.

You should always keep this in mind when designing some test code.