improve unit tests
This commit is contained in:
parent
2e809601fc
commit
334288ed87
@ -49,6 +49,7 @@ class UnitTests(TestCase):
|
|||||||
for building in self._city.buildings:
|
for building in self._city.buildings:
|
||||||
result = Cost(building).life_cycle
|
result = Cost(building).life_cycle
|
||||||
self.assertIsNotNone(result)
|
self.assertIsNotNone(result)
|
||||||
|
self.assertEqual(0, result.values[0])
|
||||||
|
|
||||||
def test_scenario_1(self):
|
def test_scenario_1(self):
|
||||||
for building in self._city.buildings:
|
for building in self._city.buildings:
|
||||||
@ -57,12 +58,13 @@ class UnitTests(TestCase):
|
|||||||
|
|
||||||
def test_scenario_2(self):
|
def test_scenario_2(self):
|
||||||
for building in self._city.buildings:
|
for building in self._city.buildings:
|
||||||
result = Cost(building, retrofit_scenario=SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV).life_cycle
|
result = Cost(building, retrofit_scenario=SYSTEM_RETROFIT_AND_PV).life_cycle
|
||||||
self.assertIsNotNone(result)
|
self.assertIsNotNone(result)
|
||||||
|
self.assertEqual(0, result.values[0])
|
||||||
|
|
||||||
def test_scenario_3(self):
|
def test_scenario_3(self):
|
||||||
for building in self._city.buildings:
|
for building in self._city.buildings:
|
||||||
result = Cost(building, retrofit_scenario=SYSTEM_RETROFIT_AND_PV).life_cycle
|
result = Cost(building, retrofit_scenario=SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV).life_cycle
|
||||||
self.assertIsNotNone(result)
|
self.assertIsNotNone(result)
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user