On Feb 7, 2016 8:38 AM, "Danny Yoo" <danny....@gmail.com> wrote:
>
> :
> >
> >     def test_red_temperature_simulation(self):
> >         """
> >         Method to test the red_temperature_simulation method
> >         """
> >         for i in range(1000000):
> >             test_value = red_temperature_simulation()
> >             self.assertTrue((test_value < 100.0) or (test_value >
103.0),
> >                             msg="Test failed for {}".format(test_value))
> >
> > And now everything works the way it should.
> >
>
> Be careful.  Now you have a test that always succeeds.

No, I'm wrong.  Sorry about that: I misread the numerical range.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to