tests: während der Erstellung erfolgt eine Kontrolle des Gewichts
This commit is contained in:
@@ -19,13 +19,13 @@ OUTER_ARMOR = {
|
||||
ZoneNames.MIDDLE_TORSO_FRONT: 8,
|
||||
ZoneNames.MIDDLE_TORSO_REAR: 4,
|
||||
ZoneNames.LEFT_TORSO_FRONT: 8,
|
||||
ZoneNames.LEFT_TORSO_REAR: 3,
|
||||
ZoneNames.LEFT_TORSO_REAR: 2,
|
||||
ZoneNames.RIGHT_TORSO_FRONT: 8,
|
||||
ZoneNames.RIGHT_TORSO_REAR: 3,
|
||||
ZoneNames.RIGHT_TORSO_REAR: 2,
|
||||
ZoneNames.LEFT_ARM: 5,
|
||||
ZoneNames.RIGHT_ARM: 5,
|
||||
ZoneNames.LEFT_LEG: 7,
|
||||
ZoneNames.RIGHT_LEG: 7,
|
||||
ZoneNames.LEFT_LEG: 8,
|
||||
ZoneNames.RIGHT_LEG: 8,
|
||||
}
|
||||
|
||||
NEXT_OUTER_ZONE = {
|
||||
|
||||
@@ -161,3 +161,23 @@ class TestMechAmor(AbstractTestMechAmor):
|
||||
zone = mech.inner_structure.zones.get(zone_name)
|
||||
should_outer_armor = OUTER_ARMOR[zone_name]
|
||||
self.assertEqual(should_outer_armor, zone.armor)
|
||||
|
||||
|
||||
class TestMechWeightWatch(AbstractTestMechAmor):
|
||||
|
||||
def test_watch(self):
|
||||
watcher = self.factory.watcher
|
||||
'''
|
||||
Aufstellung Gewichte:
|
||||
Bauteil | Gewicht in Tonnen
|
||||
------------------------------------
|
||||
Reaktor | 6.0
|
||||
Gyroskope | 2.0
|
||||
Interne-Struktur | 2.0
|
||||
Cockpit | 3.0
|
||||
Panzerung | 4.0
|
||||
------------------------------------
|
||||
| 17.0
|
||||
'''
|
||||
self.assertEqual(17.0, watcher.actual_weight)
|
||||
self.assertEqual(3.0, watcher.rest_weight)
|
||||
|
||||
Reference in New Issue
Block a user