:
>
> 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.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor