コード例 #1
0
ファイル: runtests.py プロジェクト: giantneco/tdd-with-python
 def testHeaterWith15(self):
     ac = AirConditionar(15)
     ac.set_heater()
     self.assert_(ac.is_light_lamp())
コード例 #2
0
ファイル: runtests.py プロジェクト: giantneco/tdd-with-python
 def testCoolerWith35(self):
     ac = AirConditionar(35)
     self.assert_(ac.is_light_lamp())
コード例 #3
0
ファイル: runtests.py プロジェクト: giantneco/tdd-with-python
 def testHeaterWith21(self):
     ac = AirConditionar(21)
     ac.set_heater()
     self.assert_(not ac.is_light_lamp())
コード例 #4
0
ファイル: runtests.py プロジェクト: giantneco/tdd-with-python
 def testCoolerWith27(self):
     ac = AirConditionar(27)
     self.assert_(not ac.is_light_lamp())