def setup(self): """Test that initial conditions are setup correctly for default values (start, end, points) and default over-ride (s, p, q). I chose this test so that the initial conditions can be verified and if there is an error identify which parameter the problem is associated with.""" s = randint(1,10) p = randint(1,10) b = randint(1,10) attr = Attractor(s, p, b) attr.s_t = s attr.p_t = p attr.b_t = b attr = Attractor(attr.s_t, attr.p_t, attr.b_t) print "Assert value for s parameter over-ride" assert attr.params[0] == s print " PASSED!!!!" print "Assert value for p parameter over-ride" assert attr.params[1] == p print " PASSED!!!!" print "Assert value for b parameter over-ride" assert attr.params[2] == b print " PASSED!!!!" print "Assert default value for start parameter" assert attr.start == 0 print " PASSED!!!!" print "Assert default value for end parameter" assert attr.end == 80 print " PASSED!!!!" print "Assert default value for points parameter" assert attr.points == 10000 print " PASSED!!!!"