thermostat

Just a TDD exercise
git clone https://git.tronto.net/thermostat
Download | Log | Files | Refs | README

commit 75c174ea67639571c35519aa172a3c27b46f9179
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sun, 28 May 2023 21:28:35 +0200

[RED] New thermostat -> current required temperature is 10

Diffstat:
A.gitignore | 1+
Athermostat.py | 8++++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/thermostat.py b/thermostat.py @@ -0,0 +1,8 @@ +import unittest + +class ThermostatTests(unittest.TestCase): + + def test_GivenNewThermostat_ThenRequiredTemperatureIs10(self): + thermostat = Thermostat() + currentRequiredTemperature = thermostat.GetCurrentRequiredTemperature() + self.assertEqual(currentRequiredTemperature, 10)