def test_out_in2(self): ''' tests pour_out supplying into_jug, checking temperature''' j = Jug(123) j2 = Jug(20) j.pour_in(100, 56) j.pour_out(10, into_jug=j2) self.assertAlmostEqual(j2.temperature(), 56)
def test_out_in4(self): j = Jug(100) j.pour_in(100, 0) j.pour_in(100, 50) print(j.temperature())
def test_temp(self): ''' tests pour_in temperature()''' j = Jug(123) j.pour_in(32, 56) self.assertAlmostEqual(j.temperature(), 56)